1.安装nginx
yum install nginx
2.找到配置文件
find / -name nginx.conf
3.添加配置
vi nginx.conf
4.基本命令
nginx #启动
nginx -s stop #停止nginx
nginx -s reload #重启nginx
nginx -c /etc/nginx/nginx.conf #使用指定配置文件启动nginx
nginx -t #检测配置文件是否有错误
nginx -v #查看版本信息
最后
以上就是欢呼夏天最近收集整理的关于centOs使用yum安装nginx的全部内容,更多相关centOs使用yum安装nginx内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复