Nginx on Centos 7.6 for K8S test

2019-12-27  本文已影响0人  你的脚步

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 nginx

vi /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

上一篇下一篇

猜你喜欢

热点阅读