centos安装nginx报错 No package nginx available.

如果报错 No package nginx available.

先执行 yum install epel-release

再执行 yum install nginx

启动nginx命令:nginx

nginx的配置文件路径,/etc/nginx/nginx.conf

你可能感兴趣的:(Linux,centos,nginx,linux)