今天在CL學園,對上CentOS 5.9真是碰了不少釘子,果然每個Linux的指令及概念都不大一樣,記下來以後方便些...[[MORE]]
- 重新啟動網路卡:
#/etc/rc.d/init.d/network restart //方式一
#service network restart //方式二
- 修改網路設定:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 //範例如下
# BOOTPROTO = STATIC
# IPADDR = xx.xx.xx.xx
# NETMASK = 255.255.255.xxx
# GATEWAY = xx.xx.xx.xx
# ONBOOT = yes
- 設定DNS Server 位址
# vi /etc/resolv.conf //範例如下
# nameserver 168.95.1.1
# nameserver 8.8.8.8
- 將root以外的帳號加入一般sudo:
# su
# chmod u+w /etc/sudoers
# vi /etc/sudoers
找到 root ALL=(ALL) ALL 在下面添加 xxx ALL=(ALL) ALL (xxx = username)
# chmod u-w /etc/sudoers
沒有留言:
張貼留言