Centos7 start the network card

[External link image transfer failed. The source site may have an anti-hotlinking mechanism. It is recommended to save the image and upload it directly (img-U1KRKUpj-1606809612653)(C:\Users\93623\AppData\Roaming\Typora\typora-user-images\ image-20201123170739437.png)]

In vim /etc/sysconfig/network-scripts/ifcfg-eth0, the network card is self-starting after booting, but after restarting, the network card still does not start and needs to be used service network restartto take effect.

You cannot use ssh to connect to the server without starting the network card.

In order to solve this problem, you can execute the following command:

systemctl enable network
/sbin/chkconfig network on

Use the following command to check whether sshd is started

systemctl start sshd
systemctl  status sshd

Guess you like

Origin blog.csdn.net/weixin_46129834/article/details/110437453