擅长:python、mysql、java
<p>启用具有完整路径名的守护程序可以解决此问题,但有更好的解决方案。在</p>
<p>问题是该服务位于<em>用户</em>目录中,但作为<em>系统</em>服务启动。然而,无论如何,<em>/usr/lib</em>并不是添加新<em>服务</em>文件的正确位置。该目录用于作为操作系统包的一部分提供的文件。添加新的<em>system</em>服务的正确目录位于<em>/etc/systemd/system</em>请参见<a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html#tabl-Managing_Services_with_systemd-Introduction-Units-Locations" rel="nofollow">related docs about systemd paths</a>。在</p>
<p>您仍然需要<code>enable</code>该服务以确保它在启动时被加载。在</p>