LINUX -nginx服务安装

nginx

安装

yum install epel-relase -y

yum install nginx -y

安装完可以查看nginx的配置信息文件

vim /etc/nginx/nginx.conf

修改完conf文件,则应重启nginx软件(不推荐)

systemctl restart nginx

一般重新加载nginx软件

systemctl reload nginx

然后关闭防火墙

systemctl stop firewalld

开机启动nginx

systemctl enable nginx

关闭开机启动nginx

systemctl disable nginx

防火墙同理

猜你喜欢

转载自blog.csdn.net/chengge1124/article/details/81782516