还好将输出重定向到文件了,发现如下提示
error while loading shared libraries: libPocoXML.so.81: cannot open shared object file: No such file or directory
将程序动态库目录加到 /etc/ld.so.conf.d/applib.conf 中即可(名称自己取),一般这个目录是被/etc/ld.so.conf包含的
# cat /etc/ld.so.conf include /etc/ld.so.conf.d/*.conf # cat /etc/ld.so.conf.d/pegisd.conf /usr/local/applib # ldconfig
或者export LD_LIBRARY_PATH 。。。。。。。。。将目录设置为环境变量(临时有效)
然后 systemctl 就可以正常启动程序了



