centos安裝實用總結

1.經常使用軟件安裝:mysql

yum install -y bash-completion vim lrzsz wget expect net-tools nc nmap tree dos2unix htop iftop iotop unzip telnet sl psmisc nethogs glances bclinux

2.主機名和網絡sql

hostnamectl set-hostname XXXXX
echo "10.0.0.100 XXXXX">>/etc/hostsvim


3.關閉防火牆
iptables -L
iptables -F
systemctl disable firewalldbash


[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 mysqldunix

yum install -y httpdrest

[root@XXXXX~]# systemctl start httpd
[root@XXXXX~]# systemctl restart httpd
[root@XXXXX~]# systemctl stop httpd
[root@XXXXX~]# systemctl restart httpdip

 

5.網絡管理
ip a
ifconfig
ping
vim /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl restart networkci

相關文章
相關標籤/搜索