标签:名称 system 文件名 ulimit scripts filesyste class stat zabbix
综合架构模板环境
1.规划网卡名称为eth0,eth1
1)修改网卡配置文件名
mv /etc/sysconfig/network-scripts/ifcfg-{ens33,eth0}
2)修改配置文件中设备名称,IP地址
sed -ri ‘s#ens33#eth0#g‘ /etc/sysconfig/network-scripts/ifcfg-eth0
sed -ri ‘s#31#30#g‘ /etc/sysconfig/network-scripts/ifcfg-eth0
3)添加一块网卡,并配置eth1的ip为172.16.1.200/24
[root@xiaoming ~]# nmcli connection add con-name eth1 ipv4.addresses 172.16.1.20/24 ipv4.method manual autoconnect yes type ethernet ifname eth1
2.关闭防火墙和selinux
1)关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
2)关闭SELINUX
临时关闭
setenforce 0
永久关闭
sed -i ‘s#(^SELINUX=).*#\1disabled#g‘ /etc/selinux/config
sed -i ‘/^SELINUX=/c SELINUX=disabled‘ /etc/selinux/config
3.yum
1)aliyun的BASE库
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2)aliyun的epel库
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
4.//安装基础软件包
yum install net-tools vim tree htop iotop \
lrzsz sl wget unzip telnet nmap nc psmisc \
dos2unix bash-completion iftop sysstat lsof -y
5.优化ulimit,文件描述符
echo ‘* - nofile 65535‘ >> /etc/security/limits.conf
6.生成模板快照
7.克隆
核心架构地址规划
网站核心架构所需虚拟机IP及主机名规划
WAN_IP LAN_IP Hostname 10.0.1.5 172.16.1.5 1b01 10.0.1.6 172.16.1.6 1b02 10.0.1.7 172.16.1.7 web01 10.0.1.8 172.16.1.8 web02 10.0.1.9 172.16.1.9 web03 10.0.1.41 172.16.1.41 nfs 10.0.1.51 172.16.1.51 backup 10.0.1.61 172.16.1.61 db01 10.0.1.71 172.16.1.71 m01 10.0.1.81 172.16.1.81 zabbix
克隆完之后的操作:
1.修改主机名
hostnamectl set-hostname backup
2.修改IP地址
sed -ri ‘s#200#51#g‘ /etc/sysconfig/network-scripts/ifcfg-eth1
sed -ri ‘s#31#51#g‘ /etc/sysconfig/network-scripts/ifcfg-eth0
3.做快照
网站核心架构vmware和xshell软件里虚拟机名字规划
01-10.0.1.5-keepalived-1b01 02-10.0.1.6-keepalived-1b02 03-10.0.1.7-nginx-web01 04-10.0.1.8-nginx-web02 05-10.0.1.9-nginx-web03 06-10.0.1.41-nfsfilesystem-nfs 07-10.0.1.51-rsync-backup 08-10.0.1.61-mysql-db01 09-10.0.1.71-manage-m01 10-10.0.1.81-zabbix
标签:名称 system 文件名 ulimit scripts filesyste class stat zabbix
原文地址:https://www.cnblogs.com/xmtxh/p/12207169.html