美文网首页
Nginx on Centos 7.6 for K8S test

Nginx on Centos 7.6 for K8S test

作者: 你的脚步 | 来源:发表于2019-12-27 21:00 被阅读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

相关文章

网友评论

      本文标题:Nginx on Centos 7.6 for K8S test

      本文链接:https://www.haomeiwen.com/subject/xhzdoctx.html