1.install;CentOS 安装nginx yum install nginx 时报错:No package nginx available.
先安装epel:
yum install epel-release
yum install nginx
2.config:
vi /etc/nginx/nginx.conf
3. loadbalance:
systemctl restart nginxvi /etc/sysconfig/network-scripts/ifcfg-eno16777736
service network restart
关闭selinux
进入到/etc/selinux/config文件
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
网友评论