Mlkey

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
网卡修改名称
1、编辑/etc/default/grub并加入“net.ifnames=0 biosdevname=0 ”到GRUBCMDLINELINUX变量来实现的。
2、运行命令grub2-mkconfig -o /boot/grub2/grub.cfg 来重新生成GRUB配置并更新内核参数。(网卡的名字eth0)
3、重启网卡或者重启系统
 
 
系统优化
更改YUM
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
 
安装vim:yum -y install vim
tab补全:yum install -y bash-completion
其他常用包:yum -y install lrzsz nmap nc tree htop
 
更改主机名
hostnamectl set-hostname mikey
 
 
关闭防火墙
[root@bh3 ~]# systemctl stop firewalld.service    (关闭)
[root@bh3 ~]# systemctl status firewalld.service  (查看)
 
 
查看系统启动时间的详细过程
 
systemd-analyze plot > bootime.svg   查看系统启动的图片(网页)
systemd-analyze blame                       (命令行每个软件启动详细列表)
systemd-analyze time                          (命令行里查看启动的多久)        
posted on 2018-01-17 13:47  Mlkey  阅读(255)  评论(0)    收藏  举报