一、yum安装nginx
配置阿里源
https://www.cnblogs.com/zgqbky/p/11722032.html
安装
sudo yum -y install nginx # 安装nginx
sudo yum remove nginx # 卸载 nginx
查看nginx安装的配置文件和目录
rpm -ql nginx//查看nginx安装的配置文件和目录
nginx -v //查看安装的版本
nginx -V //查看编译时的参数
启动、重启,停止
systemctl start nginx // 启动nginx
systemctl restart nginx
systemctl stop nginx
systemctl reload nginx// 重新加载配置文件
查看nginx运行状态
ps -ef |grep nginx // 查看nginx运行状态
pkill nginx //干掉nginx
遇到的问题:Centos 7下安装nginx,使用yum install nginx,提示没有可用的软件包
https://blog.csdn.net/dany_zj_cn/article/details/105499319
https://xiaotut.com/54-yy/jisuanji/19759-19759.html