我安装了 Node V10.19.0 和 tileserver-gl
我在我的主目录中创建了一个名为 tileserver.sh 的 bash 文件
其中包含此代码:
xvfb-run -a -s "-screen 0 1024x768x24" tilerserver-gl NewZeland.mbtiles
当我执行它工作正常,并监听端口 8080,我在 /etc/systemd/system/tileserver.service 中创建了这个文件的服务并启用
sudo systemctl status tileserver.service
它显示了这个错误:
Loaded: loaded (/etc/systemd/system/tileserver.service: enabled; vendor preset: enabled)
Active: Failed (Result: exit-code) since .....
process: 3729 ExecStart=/home/tilesServer/tileserver.sh ( code=exited, status=126)
Main PID: 3729 ( code=exited, status=126)
mar 26 18:21:57 tileserver systemd started tileserver bash script runing
mar 26 18:21:57 tilerserver tileserver.sh[3729] : /usr/bin/env "node' Permission denied
mar 26 18:21:57 tileserver systemd[1]: tileserver.service: main process exited , code=exited, status=126/n/a
mar 26 18:21:57 tileserver systemd[1]: tileserver.service: Failed with result 'exit-code'
如何解决此问题和错误