![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
矩阵中的尼奥
这个作者很懒,什么都没留下…
展开
-
linux系统时间校正
linux系统时间校正查看当前时间dateThu Jun 13 16:53:06 CST 2019使用ntpdate进行时间校正,ntpdate是一个linux软件,如果当前没有就需要安装yum -y install ntpdate同步时间ntpdate urlurl: url为从哪个网站同步时间,是一个网站的域名url可选值如下time.nist.govtime.n...原创 2019-09-23 14:49:10 · 530 阅读 · 0 评论 -
linux更改hostname
linux更改hostname查看当前hostnamehostname修改hostname,只是临时修改,重启后会失效hostname str永久性修改,修改/etc/hostnamevim /etc/hostname原创 2019-09-23 14:47:57 · 69 阅读 · 0 评论 -
linux centos7 防火墙
linux centos7 防火墙firewalld如果系统还没有firewall防火墙,那么需要安装yum -y install firewalld开启防火墙systemctl start firewalld.service查看防火墙状态systemctl status firewalld或者firewall-cmd --state关闭防火墙systemctl st...原创 2019-09-23 14:45:06 · 121 阅读 · 0 评论 -
linux 网络配置
linux 网络配置网卡文件进入/etc/sysconfig/network-scripts/目录cd /etc/sysconfig/network-scripts/查看网卡文件,文件名一般为ifcfg-xxx,如:ifcfg-eth0, ifcfg-em1DEVICE=eth0#网卡设备名称ONBOOT=yes#启动时是否激活 yes | noBOOTPROTO=static...原创 2019-09-23 14:54:50 · 113 阅读 · 0 评论