rhel7 启动网络
我装的是rhel7 服务器版本(在virtualbox虚拟机里),安装后默认不启动网络,另外还有很多命令也不能用,比如ifconfig, yum-config-manager等。
先解决网络问题:
切换root用户
在/etc/sysconfig/network-scripts目录下有一个和你网卡有关的文件,我的是 ifcfg-enp0s3
编辑文件:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAekAAAEyCAIAAABRVb8sAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu2dbbbbuK5tT53xGnnSwlQzH3KRgSAACFHUh2V77h81bJIAFiblJZW2tvOf//ADAQhAAAIQgAAEIAABCEAAAhCAAAQgEAn8IwM/f/604R8/fsQlZ7//999///e//4WsMuhHwgKbzYFnq/tPWascPKV0SeOUzDnJDbWuA5XbmRlRPXsPmwVQ1rio2ltuppH5NQviJfkI1NqGrkXN93hwpd+s+f1aizootQn/r82Ja99j3FmNHTdy0Otx/0JM5QevHMyN7B0Jbe4N37X+nloXgdrV6cHFa6Ds0A3VJZsmtBcH5fXha+JHOTVb+ZEchcj4WlST8Nwpk2dbNgNtLepc5SHb/7s0O8kh8FoCH3AuuQdgD0pmZwwuSF2LuqffvVV6PnuznbJ+6N12nrE98+rDRs5M+RBLfrCHBRlS0UctbEkWvyBjjYaVtvCD5Ee9aNpRX70Mv6c5/2jHR7XCfslba3lTRkPJ20pIqAqz8kbhZlMWKy9mDrmmlp8a7X4WP1Lom/Vs8/ogu1HoY0dRxv8IDWvTxISttCqj1kIXsmyyr8zn/pE/97vzDRNPxB8N4ciYnPJHSbmjHnRmHYoa5bxb/ZRHnHNuilRhky03oJpCXmF+PSq9VisTsJE+oc5mGh5+Tp7bKTmMevTJfWApo8ycB7PIPDKqm30nx454jlAcqZVjmyphaqRcl40+sCOem1G53EhqWNm8nZwKO+KlNhl8p2V3I/3XjQ+vu61kPkCvU3NR5vLIW6u1i4aejeSA0KhdsWvy9OBbi12IajoqP5xZnpGRqRlQZcVycKGdJuT+rTQxobvMsJF9ZEpblgybeP2C+aigLffl0+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255U9bKqZj5os3K4/vVJO+hTc4eVzhZiGUQOEjgv41xH0ydw3vvkI+NfjJ1WQ4vR9aiylQ3D/Y0bhazVu4j9+t9j6i1TSTqTQn8es7E7nE3PdhFcV4zOdVYlc8wbwfzUY3C3M49Iw2NeQFNX3lKK0pyezFfqFn57vvlQc0fUQ0QpiBwD4Huu6jCh1w/pV6WLfBToygZzxks2yhKFmSvsTzzUTMKrZb3o+xNZRdeyUytGRpZRqaRxTSbsivhqCOvoUzYHLgL+9XI0EKjBU2tEDizX01TTEEAAtsE5AMZPpPbMc9Y8b7Kn8FvtwqA70ZGwFsRiH+b82Tx6tr5SvOxmrGPx24NwiDw7gS6eyZP6C1cZb+RcSs9r//txD/hAFjTAPY1bkRBAAIQgAAEIAABCEAAAhCAgCPw/wEQdlWti0VH7AAAAABJRU5ErkJggg==" alt="" />
,并修改为ONBOOT=on。然后即可链接网络
因为ifconfig在net-tools包里,yum-config-manager在yum-util包里,现在我的电脑里没有源,有不能通过yum管理工具添加源,也挂载不了光盘,所以接下来手动添加一个163的yum源:
cd /etc/yum.repo.d
vi centos7.repo
/ *输入一下内容
[centos7]
name=centos7
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
gpgcheck=
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
*/
yum clean all
yum update
yum makecache
即可。
现在就可以安装需要的东西了。
yum install yum-util -y
yum install net-tools -y
现在ifconfig, yum-config-manager都可以用了。
rhel7 启动网络的更多相关文章
- centos7 无法启动网络(service network restart)错误解决办法
centos7 无法启动网络(service network restart)错误解决办法: (以下方法均为网上COPY,同时感谢原博主分享) systemctl status network.ser ...
- windows 无法启动网络发现
1.先启动三个服务,按顺序启动(有依存关系),都改为自启动 Function Discovery Resource Publication SSDP Discovery UPnP Device Hos ...
- centos7 无法启动网络(service network restart)错误解决办法(转)
centos7 无法启动网络(service network restart)错误解决办法:(以下方法均为网上COPY,同时感谢原博主分享) systemctl status network.serv ...
- AIX 开机启动网络服务配置
aix7 administrator An administrator notices that the ntp group subsystem is not starting up at boot ...
- centOS 7下无法启动网络(service network start)错误解决办法
今天在centOS 7下更改完静态ip后发现network服务重启不了,翻遍了网络,尝试了各种方法,终于解决了. 现把各种解决方法归纳整理,希望能让后面的同学少走点歪路... 首先看问题:执行serv ...
- CentOS启动网络提示connect: Network is unreachable(配置静态路由)
ls /etc/sysconfig/network-script/ifcfg-eth0 一.看是否在上述目录下存在ifcfg-eth0 这个文件,若存在则按下面的步骤操作: 1.手工配置ip看能不能配 ...
- centOS 7下无法启动网络(service network start)错误解决办法(应该是最全的了。。。)
今天在centOS 7下更改完静态ip后发现network服务重启不了,翻遍了网络,尝试了各种方法,终于解决了. 现把各种解决方法归纳整理,希望能让后面的同学少走点歪路... 首先看问题:执行serv ...
- Ubuntu 18.10 使用VMware克隆后,克隆后的机器再手动更改interfaces配置文件后无法启动网络的解决办法
克隆过程就略过了 配置interfaces root@client02:~# vim /etc/network/interfaces # interfaces() ) and ifdown() aut ...
- RHEL7启动到命令模式
打开/etc/inittab 文件会看到以下信息 从中知道想要启动后就进入完整的多用户文本模式(命令行模式) 以root权限执行: ln -sf /lib/systemd/system/multi-u ...
随机推荐
- mysql(2)—— 由笛卡尔积现象分析数据库表的连接
首先,先简单解释一下笛卡尔积. 现在,我们有两个集合A和B. A = {0,1} B = {2,3,4} 集合 A×B 和 B×A的结果集就可以分别表示为以下这种形式: A×B = {(0,2 ...
- [转]python 模块 chardet下载及介绍
来源:http://blog.csdn.net/tianzhu123/article/details/8187470/ 在处理字符串时,常常会遇到不知道字符串是何种编码,如果不知道字符串的编码就不 ...
- Ubuntu+Firefox总是打不开网页
参考链接 火狐的设置里面找: 首选项 -> 高级 -> 网络 -> 连接 -> 设置, 结果发现之前默认是选择了使用系统代理设置, 果断拒绝!... 勾选第一项, " ...
- 1028阿里RDS如何恢复云数据库MySQL的备份文件到自建数据库
参照 https://help.aliyun.com/knowledge_detail/41817.html 恢复云数据库MySQL的备份文件到自建数据库 更新时间:2017-07-27 14:52: ...
- jvm学习记录-对象的创建、对象的内存布局、对象的访问定位
简述 今天继续写<深入理解java虚拟机>的对象创建的理解.这次和上次隔的时间有些长,是因为有些东西确实不好理解,就查阅各种资料,然后弄明白了才来做记录. (此文中所阐述的内容都是以Hot ...
- 我是如何在公司项目中使用ESLint来提升代码质量的
ESLint:你认识我吗 ESLint是一个语法规则和代码风格的检查工具. 和学习所有编程语言一样,想要入门ESLint,首先要去它的官网看看:https://eslint.org/. ESLint的 ...
- [LeetCode] Lonely Pixel II 孤独的像素之二
Given a picture consisting of black and white pixels, and a positive integer N, find the number of b ...
- [LeetCode] Target Sum 目标和
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symb ...
- Mysql之库表操作(胖胖老师)
SQL概念:结构化查询语言(SQL = Structured Query Language),也是一种编程语言(数据库查询和程序设计语言),可以用于数据的存取及查询,更新,管理关系型数据库系统ps: ...
- hibernate--HelloWorld
本次学习版本:hibernate-release-5.2.6.Final,要求java 1.8 和JDBC 4.2. hibernate是一个开放源代码的对象关系映射框架.对JDBC进行了非常轻量的封 ...