安装ftp server时报错发现是无法解析域名,然后在/run/systemd/resolve/stub-resolv.conf下加了 如下命令:

nameserver 8.8.8.8
nameserver 114.114.114.114

然后执行service network restart报错;

能够正常ping通IP,但是执行命令service network restart就报错:Failed to restart network.service: Unit network.service not found.

:在网上找了很多办法最终发现是系统不一样,命令也不一样;我通过service network命令按tab提示出我Ubuntu系统的命令为:service network-manager restart

哈哈

Logo

更多推荐