Centos修改ip

1 查看ip

复制代码
[root@localhost ~]# ip addr

2 root账号修改ip

复制代码
[root@localhost ~]# su
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# ll

vi编辑ifcfg-ens33

3 重启网卡

复制代码
[root@localhost network-scripts]# systemctl restart network
相关推荐
DFT计算杂谈7 小时前
无 Root 权限在 Tesla K80 零门槛部署 DeepSeek 大模型
linux·服务器·网络·数据库·机器学习
Zhang~Ling8 小时前
从 fopen 到 struct file:从零开始拆解 Linux 文件 I/O
linux·运维·服务器
DeeplyMind8 小时前
Linux 深入 per-VMA lock:Linux 缺页路径如何摆脱 mmap_lock
linux·per-vma lock
爱写代码的森9 小时前
蒙三方库 | harmony-utils之FileUtil文件重命名与属性查询详解
linux·运维·服务器·华为·harmonyos·鸿蒙·huawei
XMAIPC_Robot10 小时前
软硬协同实时控制|RK3588业务调度+FPGA硬件时序,ethercat实现半导体设备微秒级响应(125us)
linux·arm开发·人工智能·fpga开发
重生的黑客10 小时前
Linux 进程优先级、切换与调度:从孤儿进程到 O(1) 调度模型
linux·运维·服务器·进程优先级·nice
骑上单车去旅行12 小时前
MD5校验对比脚本
linux·服务器·windows
平生幻12 小时前
Linux 常用命令
linux
ShirleyWang01213 小时前
让headlamp控制台能访问
linux·服务器·python·k8s·k3s
liuccn13 小时前
Linux 存储系统:LVM 与直接分区
linux·运维