我已经在virtualenv中安装了节点池,并且正在尝试启动该服务,但是它失败了,如下所述。我在引用的lib文件中做了一些调整,例如复制。
这是我第一次使用virtualenv,所以我可能缺少某些东西或出现了菜鸟错误。有人可以协助吗?
cat /etc/systemd/system/nodepool-launcher.service
[Unit]
Description=Nodepool Launcher Service
After=syslog.target network.target
[Service]
Type=simple
# Options to pass to nodepool-launcher.
Group=nodepool
User=nodepool
RuntimeDirectory=nodepool
ExecStart=/var/lib/nodepool/venv/bin/nodepool-launcher
Environment=PYTHONPATH=/var/lib/nodepool/venv/bin/python
Restart=on-failure
LD_LIBRARY_PATH=/var/lib/nodepool/venv/lib64/python3.5
WorkingDirectory=/var/lib/nodepool/venv
[Install]
WantedBy=multi-user.target
来自/ var / log / messages。
Dec 21 07:06:21 ca-o3lscizuul nodepool-launcher: /var/lib/nodepool/venv/bin/python3: error while loading shared libraries: libpython3.5m.so.rh-python35-1.0: cannot open shared object file: No such file or directory
ls -l /var/lib/nodepool/venv/lib64/python3.5/libpython3.5m.so.rh-python35-1.0
lrwxrwxrwx 1 nodepool nodepool 67 Dec 21 06:56 /var/lib/nodepool/venv/lib64/python3.5/libpython3.5m.so.rh-python35-1.0 -> /opt/rh/rh-python35/root/usr/lib64/libpython3.5m.so.rh-python35-1.0
(venv)[nodepool @ ca-o3lscizuul nodepool] $ tail -2〜/ .bashrc
source /opt/rh/rh-python35/enable
source /var/lib/nodepool/venv/bin/activate