用户名:残夜寻茶香
文章数:101
访问量:113944
注册日期:
阅读量:1297
阅读量:3317
阅读量:447874
阅读量:1132949
51CTO推荐博文
刚刚装好的虚拟机突然不能上网了,报错很诡异,具体报错如下:/etc/init.d/network restartRestarting network (via systemctl): &Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. [失败]使用systemctl status network.service命令查看结果如下:network.service - LSB: Bring up/down networkingLoaded: loaded (/etc/rc.d/init.d/network)Active: failed (Result: exit-code) since 三
11:34:36 CST; 54s agoDocs: man:systemd-sysv-generator(8)Process: 3847 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: network[3847]: RTNETLINK answers: File exists8月 17 11:34: systemd[1]: network.service: control process exited, code=exited status=18月 17 11:34: systemd[1]: Failed to start LSB: Bring up/down networking.8月 17 11:34: systemd[1]: Unit network.service entered failed state.8月 17 11:34: systemd[1]: network.service failed.查看系统日志,报错如下:Aug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python network: RTNETLINK answers: File existsAug 17 11:34:36 python systemd: network.service: control process exited, code=exited status=1Aug 17 11:34:36 python systemd: Failed to start LSB: Bring up/down networking.Aug 17 11:34:36 python systemd: Unit network.service entered failed state.Aug 17 11:34:36 python systemd: network.service failed.Aug 17 11:36:28 python systemd: Starting LSB: Bring up/down networking...Aug 17 11:36:29 python network: 正在打开环回接口: 无法载入文件 '/etc/sysconfig/network-scripts/ifcfg-lo'Aug 17 11:36:29 python network: 无法载入文件 '/etc/sysconfig/network-scripts/ifcfg-lo'Aug 17 11:36:29 python network: 无法载入文件 '/etc/sysconfig/network-scripts/ifcfg-lo'Aug 17 11:36:29 python network: 无法载入文件 '/etc/sysconfig/network-scripts/ifcfg-lo'Aug 17 11:36:29 python network: [ &确定 &]Aug 17 11:36:29 python network: 正在打开接口 eno: 错误:激活连接失败:No suitable device found for this connection.经查,确认/etc/sysconfig/network-scripts/ifcfg-lo文件是存在的。问题出现在哪里呢?无法,只好百度一下吧,百度出来的结果竟然基本一样。百度***:mac地址不对,修改mac地址。也许有人确实是mac问题,但是莫名其妙怎么可能mac地址更改了,除非你添加新网卡或者克隆的虚拟机。我特么真笑了,天下百度文章一大抄啊。。。。。。。。没办法了,Google一下吧,偶然看到一个文章,大意是跟系统自带的NetworkManager这个管理套件有关系,关掉就可以解决。试一下:systemctl stop NetworkManagersystemctl disable NetworkManagerRemoved symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.重新启动网络: systemctl start network.serviceifconfig |grep enoeno: flags=4163&UP,BROADCAST,RUNNING,MULTICAST& &mtu 1500inet 192.168.1.192 &netmask 255.255.255.0 &broadcast 192.168.1.255inet6 fe80::20c:29ff:fe3d:b305 &prefixlen 64 &scopeid 0x20&linkðer 00:0c:29:3d:b3:05 &txqueuelen 1000 &(Ethernet)RX packets 2 &bytes 120 (120.0 B)RX errors 0 &dropped 0 &overruns 0 &frame 0TX packets 22 &bytes
KiB)TX errors 0 &dropped 0 overruns 0 &carrier 0 &collisions 0网络正常启动,访问正常。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)
11:06:00 18:20:12 09:52:38arcgis10.1连接postgres总结
根据官方要求arcgis10.1支持postgres9.0与9.1,但在实际***过程中发现9.1不能创建空间数据库(可能是我的方法不对,有兴趣的可尝试),现将一些注意点列出来:
1、***完成创建空间数据库时提示“
You&must©&the&latest&ST_GEOMETRY&and&dependent&libraries&to&the&PostgreSQL&software&location.&Refer&to&the&ArcGIS&help&topics&for&more&details.&&
Connected&RDBMS&instance&is¬&setup&for&Esri&spatial&type&configuration.
解决方法:
将ST_Geometry的dll拷贝到相应的数据库位置,那么这个ST_Geometry的dll在我们的ArcGIS
Desktop或者ArcGIS Server的***文件里面都有
比如ArcGIS Desktop在C:\Program Files
(x86)\ArcGIS\Desktop10.1\DatabaseSupport\PostgreSQL\Windows64路径下,将该dll拷贝到PostgreSQL的相关路径下
一定要记住路径是在%PGHOME%/lib里面即可,如果拷贝的位置不对,系统还会报上面的错误的
注意:本人实践时postgres9.0正常,9.1和9.3不能正常使用,也可能重装后重启一下系统可能生效,因9.0是在第二天***的。
2、向arcgis server中注册数据库时提示“
Cannot connect to& database because the
database client software failed to load. Be sure the
database client software is installed and configured
correctly”
原因:server是64位的,需要64位的客户端
解决办法:将64位的客户端程序即:
Libpq.dll&&
Libeay32.dll&&
Libintl.dll&&
Ssleay32.dll
拷贝到server的bin目录下,本人是从arcsde中直接拷过来的比较方便。
另外由于desktop是32位程序,需要32位的客户端,将以下文件复制到desktop的bin目录下
Libpq.dll&&
Libiconv-2.dll&&
Libeay32.dll&&
Libintl-8.dll&&
Ssleay32.dll
参考地址:http://blog.csdn.net/linghe301/article/details/8081688
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。