CenterOS 7 配置静态IP

  1. 使用Hyper-V 安装虚拟机 https://blog.csdn.net/cai454692590/article/details/85238602
  2. 指定CenterOS 7的镜像文件进行安装,最小化安装
  3. 使用root用户登录到Linux系统
  4. 进入到 /etc/sysconfig/network-scripts/的目录
  5. 使用命令 “vi ifcfg-ens33” 进入配置文件(下图的是ethno)
    在这里插入图片描述

在这里插入图片描述

补充

ONBOOT = YES

参考链接:
https://blog.csdn.net/weixin_42187898/article/details/83833313
https://blog.csdn.net/qq_35017509/article/details/79664220
https://blog.csdn.net/qq_17818623/article/details/77200047

  1. 按下Esc, :wq 保存退出
  2. 配置完毕,输入命令reboot 重启服务器
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:1 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐