Linux setup

Install centos 7:

 

Config Network

a config example in /etc/sysconfig/network-scripts/ifcfg-ens160

TYPE=Ethernet
IPADDR=10.180.xxx.xxx
PREFIX=24
GATEWAY=10.180.0.254
DNS1=10.199.xx.xx
DNS2=8.8.8.8
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens160
UUID=c48be0aa-46ff-4d91-8788-xxxxxx
DEVICE=ens160
ONBOOT=yes

problem:

  1. user is not in the sudoers file

  

猜你喜欢

转载自www.cnblogs.com/mashuai-191/p/11993823.html