问题描述
Beaglebone Debian 8.7; 节点 v10.10.0
如上述链接中所述,尝试永远运行 .js 文件。这是我的 .service 单元文件的内容。
[Unit]
Description=myServer
DefaultDependencies=no
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
ExecStart=/root/.nvm/versions/node/v10.10.0/bin/forever start path/index.js
ExecStop=/root/.nvm/versions/node/v10.10.0/bin/forever stop path/index.js
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
使用命令 # systemctl start myServer.service 我收到以下错误。
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
myServer.service: Control process exited,code=exited status=1
但是 使用命令 forever start path/index.js;一切正常。
安装了 Forever-monitor。为什么我的服务与控制台命令相比不起作用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)