First, change and add IP Routing
1、IPADDR=192.168.150.154
2、NETMASK=255.255.255.0
3、GATEWAY=192.168.150.1
Vi /etc/sysconfig/network-scripts/route-eno16777984
10.50.1.0/24 via 10.5.16.221 dev eno16777984
10.10.16.0/24 via 10.5.16.221 dev eno16777984
Service network restart // systemctl restart network
Second, turn off the firewall
Systemctl stop firewalld.service
Systemctl disable firewalld.service
Firewall-cmd -state (see the firewall status) service firewalld status
Centos6.9 version: service iptables stop (closed)
Service iptables start (open)
Service iptables status (view)
Chkconfig iptables on / off (permanently closed / open)
Chkconfig -list iptables (View Status)
Third, set up a proxy server
we ~ / .bashrc
be
export http_proxy=http://admin:[email protected]:808
source ~ / .bashrc (executed script)
Sixth, closed
Vi /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled
// setenforce 0
// setenforce 1
// getenforce
Fourth, time synchronization
Yum install –y ntp
// rpm -qa | grep ntp *
// rpm -qa | grep ntp
Ntpdate 10.5.18.200
Crontab –e
0 */1 * * * /usr/sbin/ntpdate 10.5.18.200 >null 2>&1
Crontab –l
[Time zone in the rest of the process:
# rm -f /etc/localtime
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Five, zabbix installation
// rpm –qa|grep zabbix*
// rpm –qa|grep zabbix
We /etc/resolv.conf
Nameserver 218.85.157.99
Yum remove zabbix-release
// yum remove zabbix-agent
// yum install http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
Rpm –ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Rpm –ivh http://mirrors.aliyun.com/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
Yum install –y wget
Rpm –ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.12-1.el7.x86_64.rpm
http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.9-1.el6.x86_64.rpm
Cd /usr/lib/system/system
Systemctl enable zabbix-agent
// Systemctl start zabbix-agent (enable)
Systemctl status zabbix-agent (Check status)
Seven detection
Other machines: telnet IP 10050
Disk Management
Creating pv: pvcreate / dev / sdb1
View pv: pvdisplay or pvscan
Creating VG: vgcreate vg_xxx / dev / sdb1
View vg: vgdisplay
Expand vg: vgextend vg_xxx / dev / sdb1
Creating lv: lvcreate -l 5g -n lv_xxx vg_xxx
View lv: lvdisplay
Expand lv: lvextend -l + 100% free / dev / vg_xmxxx / lv_xxx
#lvextend –l +5g /dev/vg_xxx/lv_xxx
Format lv: mkfs.ext4 / dev / vg_xxx / lv_xxx
To Mount: mkdir / mnt / lv_xxx
Mount /dev/vg_xxx/lv_xxx /mnt/lv_xxx/
Rpm –ivh http://101.96.10.65/repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.5-1.el6x86_64.rpm
# View LAN equipment
[root@localhost ~]# nmcli dev
[root@localhost ~]# nmcli con sh
# Delete abnormal card
[root@localhost ~]# nmcli con del ens2f0
# Re-add the card configuration file
[root@localhost ~]# nmcli con add type ethernet con-name ens2f0 ifname ens2f0
# Enter ens2f0 card configuration
[root@localhost ~]#vi /etc/sysconfig/network-scripts/ifcfg-ens2f0
# Change the following:
Routing can not find the words directly add vi / etc / sysconfig / network-scripts / route-ens2f0
10.5.16.0/20 via 172.29.0.201 dev ens160