12 2020 档案

摘要:下载 wget https://bootstrap.pypa.io/get-pip.py 安装 python get-pip.py 查看版本 pip -V / pip --version 软连接 ln -sv /usr/local/python/bin/pip /usr/bin/pip 阅读全文
posted @ 2020-12-25 16:22 公博义 阅读(341) 评论(0) 推荐(0) 编辑
摘要:如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境,比如yum 1.安装依赖环境 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sql 阅读全文
posted @ 2020-12-22 15:36 公博义 阅读(15) 评论(0) 推荐(0) 编辑
摘要:yum安装 yum -y install epel-release #安装epel-release扩展源 yum -y install ansible #安装ansible ansible --version #查看版本 _______________________________________ 阅读全文
posted @ 2020-12-15 14:00 公博义 阅读(2141) 评论(0) 推荐(0) 编辑
摘要:关闭SeLinux 临时关闭:setenforce 0永久关闭修改/etc/selinux/config中***********为disabled关闭防火墙systemctl stop firewalld1.安装apacheyum -y install httpdsystemctl enable h 阅读全文
posted @ 2020-12-14 17:29 公博义 阅读(135) 评论(0) 推荐(0) 编辑
摘要:yum安装keepalived 1. 准备一台纯新的 CentOS7.6 服务器,关闭 selinux,清空防火墙 [root@lvs1 ~]# hostname lvs1 [root@lvs1 ~]# getenforce Permissive [root@lvs1 ~]# cat /etc/sy 阅读全文
posted @ 2020-12-11 10:52 公博义 阅读(449) 评论(0) 推荐(0) 编辑
摘要:在设置里面选择添加网络适配器 添加成功后在命令行输入ip a可以看到是有网卡eth1的,但是/etc/sysconfig/network-scripts目录下并没有创建网卡ifcfg-eth1文件,需要手动添加 nmcli connect show / nmcli device show eth1 阅读全文
posted @ 2020-12-10 15:12 公博义 阅读(2049) 评论(0) 推荐(0) 编辑
摘要:yum安装haproxy haproxy 是一款开源的负载均衡软件,他提供 L4 和 L7 层负载功能,全称为 high availability proxy。我们准备一台纯新的 CentOS7.6 服务器,关闭 selinux ,清空防火墙规则,使用 yum 安装 haproxy [root@ha 阅读全文
posted @ 2020-12-09 21:50 公博义 阅读(827) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示