CentOS 7.3中nginx安装与配置
在CentOS系统中,可以用yum可以简单的安装nginx
工具/原料
CentOS 7.3
安装
1、先查询一下yum安装中的nginx信息yum info nginx

2、使用直接安装yum -y install nginx

3、等待安装完成

4、启动nginxsystemctl start nginx.service

5、然后,可以在网页上查看

配置
1、用vim打开nginx.conf配置文件vim /etc/nginx/nginx.conf

2、然后可以修改配置listen 端口server_name 服务器地址root 跟目录
