centos7 connect internet

First, if it can not connect to internet

1. input 'su' to enter root

2. ls /etc/sysconfig/network-scripts/

3. remember the name of file ifcfg-enXXXXX

4.gedit file in 3, change ONBOOT to yes

5. service network restart

OK

Second, install chrome

1. su root

2. cd /etc/yum.repos.d/

3.gedit google.repo

4. input below into the file

name=Google-x86_64

baseurl=http://dl.google.com/linux/rpm/stable/x86_64

enabled=1

gpgcheck=0

gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

5. yum install google-chrome-stable

原文地址:https://www.cnblogs.com/chuiyuan/p/5057702.html