数据盘挂载:
mkdir /data
vgcreate vg_1 /dev/sdb
lvcreate -l 100%VG -n lv_1 vg_1
mkfs -t xfs /dev/vg_1/lv_1
mount /dev/vg_1/lv_1 /data
设置开机自动挂载
用户创建:
groupadd wps
useradd -g wps -d /home/wps wps -m
passwd wps
密码:xxxxxx@xxxxx
内核参数:
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables =1
net.bridge.bridge-nf-call-ip6tables =1
net.bridge.bridge-nf-call-arptables =1
vm.swappiness = 0
fs.inotify.max_user_watches = 1048576
modprobe br_netfilter
sudo 免密
sudo chmod +w /etc/sudoers
sudo vi /etc/sudoers
echo “wps ALL=(ALL) NOPASSWD:ALL” >> /etc/sudoers
检查防火墙
Firewall
关闭selinux
data目录权限
chown wps:wps /data
IO检测
sudo dd if=/dev/zero of=/data/a.dat bs=8k count=30K oflag=direct
系统版本查看
cat /proc/version
cat /etc/os-release
more /etc/.productinfo
cpu 版本查看
cat /proc/cpuinfo
麒麟系统查看cpu 和系统版本名
系统版本
cat /proc/version
cat /proc/cpuinfo