首先安装centos的扩展源 yum install epel-release 安装Nginx 方法一: yum install nginx -y 查看版本号,开启nginx,查看进程 nginx –v systemctl start nginx ps -ef|grep nginx 设置开机启动 systemctl enable nginx 查看配置文件cd /ect/nginx (安装vim查看命令yum install vim -y) vim nginx.conf 默认端口是80,网页内容在…