1.常用软件安装:
yum install -y bash-completion vim lrzsz wget expect net-tools nc nmap tree dos2unix htop iftop iotop unzip telnet sl psmisc nethogs glances bc
2.主机名和网络
hostnamectl set-hostname XXXXX
echo "10.0.0.100 XXXXX">>/etc/hosts
3.关闭防火墙
iptables -L
iptables -F
systemctl disable firewalld
[root@XXXXX~]# getenforce
Enforcing
[root@XXXXX~]# setenforce 0
[root@XXXXX~]# getenforce
[root@XXXXX~]# vim /etc/selinux/config
4.程序管理
ps -ef|grep mysql
kill 1234
kill -9 1234
pkill mysqld
yum install -y httpd
[root@XXXXX~]# systemctl start httpd
[root@XXXXX~]# systemctl restart httpd
[root@XXXXX~]# systemctl stop httpd
[root@XXXXX~]# systemctl restart httpd
5.网络管理
ip a
ifconfig
ping
vim /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl restart network