!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>云服务器Centos7 重启网卡命令

云服务器Centos7 重启网卡命令

1、

centos6的网卡重启方法:service network restart
centos7的网卡重启方法:systemctl restart network
2、

DNS配置文件:cat /etc/resolv.conf
设置主机和IP绑定信息:cat /etc/hosts
设置主机名:cat /etc/hostname
3、

可以使用nmtui文本框方式修改IP
4、

关闭防火墙并设置开机不启动
查看防火墙状态:systemctl status firewalld.service
关闭:systemctl stop firewalld
开启:systemctl start firewalld
开机自动关闭:systemctl disable firewalld
开机自动启动:systemctl enable firewalld
查看开机是否启动:chkconfig –list|grep network(RHLE6)
5、

临时和永久关闭Selinux
临时关闭:
_getenforce
Enforcing
_setenforce 0
setenforce:SELinux is disabled
永久关闭:
_vim /etc/selinux/config

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

云服务器宝塔面板绑定异常的解决方法

2021-4-17 19:14:39

服务器教程

ssh连接服务器失败,提示:Session.connect: java net. SocketException: Connection reset

2021-4-17 19:14:41

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase