1.ping 命令 检查网络连通性
2.检查CentOS的版本
cat /etc/redhat-release
3.通过网络下载文件
wget
4.可执行文件脚本
./install.sh
5.在线单个安装某个软件
yum -y install xxxx
6.检查Apache的服务是否运行
systemctl status httpd
7.检查mysql的服务是否运行
systemctl status mysqld
8.检查php是否已安装
php -v
9.查看Nginx的服务是否运行
systemctl status nginx
10.补充命令
启动服务:systemctl start 服务名
重启服务:systemctl restart 服务名
停用服务:systemctl stop 服务名
禁用服务(慎用):systemctl disable 服务名
11.查看文件命令
cat 全部显示,不适合大文件,
more /less 可以翻页,b 上一页,f 下一页, q 退出
12.查看日志文件命令
head 显示最前几行,head -20 显示前20行。。。默认10行
tail 显示最后几行, tail -20 显示最后20行 。。。默认10行
tail -f 实时跟踪日志
13.上传文件(从本地传到服务器)
rz
14.解压缩
压缩
解压
unzip unzip -d 解压文件名 (-d 后面跟 指定路径)也可以不指定路径
gzip
biz2
15.修改权限 r 读 4 , w 写 2 , x 执行 1
chmod -R 修改所有用户的权限 例:chmod -R 777
16.