Linux基础配置

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 python3
更改网络:
echo
"10.0.0.100 python3">>/etc/hosts

3  关闭防火墙

iptables -L
iptables -F
systemctl disable firewalld

[root@python3 ~]# getenforce 
Enforcing
[root@python3 ~]# setenforce 0
[root@python3 ~]# getenforce 
[root@python3 ~]# vim /etc/selinux/config 

 

 

 

 

posted @ 2019-01-03 19:01  zhaijihai  阅读(287)  评论(0编辑  收藏  举报