修改网络:
在终端中输入: vi /etc/sysconfig/network-scripts/ifcfg-ens33
更新该 Liunx 系统的内核版本:
yum update
关闭防火墙:
1: 查看防火状态
- systemctl status firewalld
- service iptables status
2: 暂时关闭防火墙
- systemctl stop firewalld
- service iptables stop
3: 永久关闭防火墙
- systemctl disable firewalld (我用的这个)
- chkconfig iptables off
4: 重启防火墙
- systemctl enable firewalld
- service iptables restart
5: 永久关闭后重启
chkconfig iptables on
关闭 selinux:
1. 使用 vi /etc/sysconfig/selinux.
2. 将 SELINUX=enforcing 改为 SELINUX=disabled .3. 修改完成后, 重启计算机 reboot 或 init6.
安装 net-tools:
yum install -y.NET-tools 不然无法使用 ifconfig 命令
安装 wget:
yum install -y wget
安装 VIM:
yum install -y VIM-enhanced
换源:
如同 Windows 的软件管家, 我们需要安装软件就要从软件管家下载后安装. Linux 也同样需要软件源, 但是 Linux 自带的源地址在国外, 我们从国外的服务器连接很慢, 所以在我们一般拿到 Linux 进行工作的时候一般第一步要替换默认的源
先进入源的目录 # cd /etc/yum.repos.d
备份一下官方源 # mv CentOS-Base.repo CentOS-Base.repo.bak
将阿里源文件下载下来 # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
重建源数据缓存
- yum clean all # 清除缓存
- yum makecache
安装 lrzsz:
yum install -y lrzsz
来源: http://www.bubuko.com/infodetail-3320980.html