跳转到主要内容
你行网

Main navigation

  • 首页
  • Drupal
  • 编程与开发
  • 数据库
  • 操作系统与应用
  • 服务器与运维
  • 社区
User account menu
  • 登录

面包屑

  1. 首页

centos7的网卡重启方法

由 hrs, 26 九月, 2020

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

  • 登录或注册以发表评论

文章标签

  • network

评论

文章标签

CSS
Excel
ubuntu
php
五笔
vim
Linux
VPN
command
HTML
drupal 8
drupal 7
centos
composer
Mysql
drush
Drupal
模块(module)
JavaSrcipt
apache
drupal 9
英语
nerdtree
SEO
network
果树种植
surround
drupal10
主题(theme)
ssh
phpmyadmin
yum
二进制
权限
声音
ssl
selinux
HTML5
password
Dreamweaver
flameshot
翻译
颜色
DDEV
uploadprogress
kernel
firewalld
WireGuard
视图(views)
快捷键
gzip
xdebug
错误
邮件验证
电脑基础
ckeditor
简介
mbstring
源地址
C语言
certbot
php扩展
git
httpd
apt
压缩解压
电子秤
表单
breadcrumb
AI
csharp
短信验证
superfish
摄影
重定向
diff
网站备份
tagclouds
docker
java
adsense
版本号
drupal 11
电脑技巧
RSS
simple_adsense
算法
端口
youtube
JavaScript
cookie
badblocks
计算机基础
网站运营
RFID
VUE
gimp
form
zip
标签优化
mod_expires 模块
赚钱
ip
dns
http验证
curl
重定向,301
netstat
字段
maven
input
npm
nginx
哈希值
wps
更多

相关文章

centos 7 配置网卡信息
centos 7 开启网络配置服务
RSS源

友情链接 网站地图 版权信息 联系我们 网址导航 & 社交媒体链接

Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号