当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 执行sudo /etc/init.d/networking restart失败
帖子发表于 : 2016-09-22 20:21 

注册: 2016-09-22 10:55
帖子: 1
系统: ubuntu16.04lts
送出感谢: 0 次
接收感谢: 0 次
wangxy@ubuntu:~$ systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: failed (Result: exit-code) since Thu 2016-09-22 13:09:12 PDT; 23s ago
Docs: man:interfaces(5)
Process: 2056 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=
Process: 2052 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [
Main PID: 2056 (code=exited, status=1/FAILURE)

Sep 22 13:09:12 ubuntu systemd[1]: Starting Raise network interfaces...
Sep 22 13:09:12 ubuntu sh[2052]: /etc/network/interfaces:6: misplaced option
Sep 22 13:09:12 ubuntu sh[2052]: ifquery: couldn't read interfaces file "/etc/ne
Sep 22 13:09:12 ubuntu ifup[2056]: /etc/network/interfaces:6: misplaced option
Sep 22 13:09:12 ubuntu ifup[2056]: /sbin/ifup: couldn't read interfaces file "/e
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Main process exited, code
Sep 22 13:09:12 ubuntu systemd[1]: Failed to start Raise network interfaces.
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Unit entered failed state
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Failed with result 'exit-
wangxy@ubuntu:~$ journalctl -xe
-- Subject: Unit networking.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit networking.service has begun starting up.
Sep 22 13:09:12 ubuntu sh[2052]: /etc/network/interfaces:6: misplaced option
Sep 22 13:09:12 ubuntu sh[2052]: ifquery: couldn't read interfaces file "/etc/ne
Sep 22 13:09:12 ubuntu ifup[2056]: /etc/network/interfaces:6: misplaced option
Sep 22 13:09:12 ubuntu ifup[2056]: /sbin/ifup: couldn't read interfaces file "/e
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Main process exited, code
Sep 22 13:09:12 ubuntu systemd[1]: Failed to start Raise network interfaces.
-- Subject: Unit networking.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit networking.service has failed.
--
-- The result is failed.
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Unit entered failed state
Sep 22 13:09:12 ubuntu systemd[1]: networking.service: Failed with result 'exit-
Sep 22 13:09:12 ubuntu sudo[2038]: pam_unix(sudo:session): session closed for us
Sep 22 13:09:20 ubuntu tpvmlpd2[2103]: device type not supported
Sep 22 13:09:35 ubuntu tpvmlpd2[2122]: device type not supported


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 执行sudo /etc/init.d/networking restart失败
帖子发表于 : 2016-09-22 20:48 

注册: 2009-08-04 16:33
帖子: 16892
送出感谢: 21
接收感谢: 1827
引用:
sudo /etc/init.d/networking restart失败

1. https://help.ubuntu.com/community/Ubunt ... nd_Configs
這是 Upstart
引用:
systemctl status networking.service

2. 這是 Systemd

3. Ubuntu 16.04 預設已經改為 Systemd
https://wiki.ubuntu.com/SystemdForUpstartUsers

4. Systemd 跟 Upstart 不能同時共存在一個開機初始化程序

5. 如果你還是習慣使用 Upstart
從開機選單 選擇 Advnaced 進階
看看 有沒有
Ubuntu .... (Upstart)

6. 進一步參閱
https://wiki.ubuntu.com/SystemdForUpsta ... it_systems


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 执行sudo /etc/init.d/networking restart失败
帖子发表于 : 2016-09-22 20:50 
头像

注册: 2008-09-18 13:11
帖子: 2781
送出感谢: 1
接收感谢: 453
请用journalctl --no-pager -xe显示完整日志


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译