Linux常见问题解决方案

查看IP地址没有显示:

1、su root

2、cd /etc/sysconfig/network-scripts

3、 vi ifcfg-ens33

4、设置ONBOOT="yes"

5、reboot

sudo不能用:

1、su root

2、visudo

3、在"root ALL=(ALL) ALL"下一行添加"centos ALL=(ALL) ALL"

4、保存退出

猜你喜欢

转载自blog.csdn.net/foyemazl/article/details/81200308