07 2019 档案

摘要:文件存储服务器配置: 安装NFSyum install -y rpcbind nfs-utils创建共享目录mkdir /root/sharefile修改目录权限chmod 0755 -R sharefile修改NFS配置文件vi /etc/exports /root/sharefile/ 192. 阅读全文
posted @ 2019-07-28 23:43 BicycleBoy 阅读(1956) 评论(0) 推荐(0)
摘要:修改rsync配置文件vi /etc/rsyncd.conf uid = nobodygid = nobodyuse chroot = yesmax connections = 4pid file = /var/run/rsyncd.pidlog file = /var/log/rsyncexclu 阅读全文
posted @ 2019-07-28 15:39 BicycleBoy 阅读(257) 评论(0) 推荐(0)
摘要:pyevn安装依赖库安装#yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap-devel xz-develuser 阅读全文
posted @ 2019-07-23 13:18 BicycleBoy 阅读(187) 评论(0) 推荐(0)
摘要:修改系统日志时间格式vi /etc/rsyslog.conf$template CustomFormat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME% %syslogtag% %msg%\n"$ActionFileDefaultTemplate CustomFormat 将 阅读全文
posted @ 2019-07-16 00:07 BicycleBoy 阅读(421) 评论(0) 推荐(0)
摘要:ansible安装 yum install ansible -y 优化ssh运行效率vim /etc/ssh/sshd_configGSSAPIAuthentication noUseDNS no vi /etc/ansible/ansible.cfg#主配置文件 vim /etc/ansible/ 阅读全文
posted @ 2019-07-10 10:47 BicycleBoy 阅读(293) 评论(0) 推荐(0)
摘要:安装zabbix的yum源rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpmyum-config-manager --enable rhel-7-server-opt 阅读全文
posted @ 2019-07-10 10:39 BicycleBoy 阅读(250) 评论(0) 推荐(0)
摘要:Docker安装及管理yum install docker-io -yvim /etc/sysconfig/docker#修改静像获取源地址other_args="--registry-mirror=https://wgcscytr.mirror.aliyuncs.com" docker searc 阅读全文
posted @ 2019-07-09 11:27 BicycleBoy 阅读(206) 评论(0) 推荐(0)
摘要:1、主节点配置:yum install mariadb-server.x86_64 -y#安装数据库service mariadb start#启动数据库mysql -uroot -p123456#登录数据库创建从节点连接登录用户create user 'repl'@'192.168.2.%' id 阅读全文
posted @ 2019-07-08 19:32 BicycleBoy 阅读(549) 评论(0) 推荐(0)
摘要:环境准备:服务器1:192.168.2.121,nginx+keepalived服务器2:192.168.2.122,nginx+keepalived服务器3:192.168.2.123,httpd服务器4:192.168.2.124,httpdvip:192.168.2.881、keepalive 阅读全文
posted @ 2019-07-08 13:39 BicycleBoy 阅读(764) 评论(0) 推荐(0)
摘要:配置nginx的yum源vi /etc/yum.repos.d/nginx.repo[nginx-stable]name=nginx stable repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck= 阅读全文
posted @ 2019-07-07 12:00 BicycleBoy 阅读(153) 评论(0) 推荐(0)
摘要:yum安装yum install mariadb-sreverrpm -ql mariadb-serverss -ntl#查看端口运行状态,3306端口ss -utlnpservice mariadb start#启动mysqlmysql#连接到数据show databases;#查看数据库use  阅读全文
posted @ 2019-07-05 19:54 BicycleBoy 阅读(682) 评论(0) 推荐(0)
摘要:加载系统iso文件mkdir /mnt/cdrom/mount /dev/sr0 /mnt/cdrom/cd /etc/yum.repos.d/rename repo repo.bakvi CentOS-Media.repo [c7-media]name=CentOS-$releasever - M 阅读全文
posted @ 2019-07-05 10:27 BicycleBoy 阅读(187) 评论(0) 推荐(0)
摘要:LVS(NAT网络地址转换)负载均衡搭建三台服务器:1台调度服务器,2台真实服务器,对外服务IP》192.168.2.188调度服务器配置:IP地址配置,桥接模式:192.168.2.188,主机模式:192.168.30.200DEVICE=ens33BOOTPROTO=staticIPADDR= 阅读全文
posted @ 2019-07-04 17:51 BicycleBoy 阅读(624) 评论(0) 推荐(0)
摘要:三层交换机配置: Switch>enableSwitch#configure terminalSwitch(vlan)#vlan 10 name VLAN10Switch(vlan)#vlan 20 name VLAN20Switch(config)#interface FastEthernet0/ 阅读全文
posted @ 2019-07-02 18:50 BicycleBoy 阅读(3588) 评论(0) 推荐(0)
摘要:进入系统视图 system-view 查看接口摘要信息dis ip int brief显示当前配置信息dis cu(current-configuration)显示当前端口配置dis this进入端口int GE0/1(gi 0/1) 关闭/重启接口 shutdown/undo shutdown配置 阅读全文
posted @ 2019-07-02 12:34 BicycleBoy 阅读(1043) 评论(0) 推荐(0)