yum install nginx
systemctl start nginx
systemctl status nginx
systemctl start nginx #启动
systemctl stop nginx #停止
systemctl restart nginx #重启
systemctl status nginx #查看运行状态
systemctl enable nginx #开机启动
nginx -v #查看nginx版本号
service nginx reload #重新加载配置文件
vi /etc/nginx/nginx.conf #打开配置文件
挺好用的
网友评论