核心内容摘要
云容笔谈·东方红颜影像生成系统Python入门实战:零基础快速生成古风人像
服务器运维操作命令手册适用对象Linux 服务器运维工程师 / 网络工程师 / IT 运维人员 适用环境CentOS / Rocky / AlmaLinux / Ubuntu / Debian命令通用个别差异已说明
系统基础信息查看
系统与内核uname -a # 查看内核信息 cat /etc/os-release # 查看系统版本 hostnamectl # 主机名与系统信息 uptime # 运行时间、负载
CPU 信息lscpu cat /proc/cpuinfo mpstat -P ALL
内存信息free -h cat /proc/meminfo top / htop
磁盘与挂载df -hT lsblk mount | column -t findmnt
文件与目录管理
基本操作ls -lh cd /path pwd touch file mkdir -p dir/subdir cp -a src dst mv old new rm -rf dir
查找与统计find / -name *.log du -sh * wc -l file stat file
权限与属主chmod 755 file chmod -R 644 dir chown user:user file id username权限速记r4 w2 x1755 rwx r-x r-x
用户与权限管理useradd username passwd username usermod -aG wheel username userdel -r username su - username whoami who lastsudo 配置visudo username ALL(ALL) NOPASSWD:ALL
进程与服务管理
进程查看ps aux ps -ef | grep nginx top htop
进程控制kill PID kill -9 PID pkill nginx
systemd 服务管理systemctl start nginx systemctl stop nginx systemctl restart nginx systemctl status nginx systemctl enable nginx systemctl disable nginx systemctl list-units --typeservice
网络与端口排查高频
IP 与网卡ip a ip route nmcli device status
端口与监听ss -lntup netstat -lntup lsof -i:
连通性测试ping
8.
8.
8 traceroute www.baidu.com curl -I http://
127.
0.
0.
抓包tcpdump -i eth0 -nn port 80 tcpdump -i any host
1.
1.