N9e server和webapi服务无法开机自启 #1425
Unanswered
coolmax123
asked this question in
Q&A
Replies: 1 comment
-
程序不会骗人,dial tcp 127.0.0.1:3306 connection refused 就是连不上,至于为啥连不上你得自己查了,可以尝试改一下mysql的bind-address之类的,还有firewalld之类的,selinux之类的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
操作系统:Centos7.9
N9E版本:n9e-v5.15.0-linux-amd64.tar.gz
通过systemctl start n9e-server.service和systemctl start n9e-webapi.service手动是能正常running,但是重启服务器后无法自启,报错信息如下:
权限如下:
请大神看下如何解决?
n9e-server和n9e-webapi的启动文件如下:
配置n9e-server启动文件
vi /etc/systemd/system/n9e-server.service
[Unit]
Description="n9e-server"
After=network.target
[Service]
Type=simple
ExecStart=/opt/n9e/n9e server
WorkingDirectory=/opt/n9e
Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=n9e-server
[Install]
WantedBy=multi-user.target
配置n9e-webapi启动文件
vi /etc/systemd/system/n9e-webapi.service
[Unit]
Description="n9e-webapi"
After=network.target
[Service]
Type=simple
ExecStart=/opt/n9e/n9e webapi
WorkingDirectory=/opt/n9e
Restart=on-failure
SuccessExitStatus=0
LimitNOFILE=65536
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=n9e-webapi
[Install]
WantedBy=multi-user.target
查询log
3306服务是启动的
Beta Was this translation helpful? Give feedback.
All reactions