./gitea web 可以启动 但是想设置为 service 启动就失败 /etc/systemd/system/gitea.service 配置
[Unit]
Description=Gitea
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
ExecStart=/usr/local/gitea web --config /usr/local/gitea/custom/conf/app.ini
Restart=always
[Install]
WantedBy=multi-user.target
权限也给了
[root@localhost local]# ls -l /usr/local/gitea
total 131008
drwxrwxr-x. 3 git git 18 Nov 18 06:21 custom
drwxrwxr-x. 15 git git 213 Nov 18 07:30 data
-rwxr-xr-x. 1 git git 134150560 Oct 3 21:27 gitea
drwxrwxr-x. 2 git git 6 Nov 18 06:10 log
[root@localhost local]# ls -l /usr/local/gitea/custom/conf/app.ini
-rw-r--r--. 1 git git 1602 Nov 18 06:21 /usr/local/gitea/custom/conf/app.ini
[root@localhost local]# sudo chown git:git /usr/local/gitea
[root@localhost local]# sudo chmod 755 /usr/local/gitea
[root@localhost local]# sudo systemctl start gitea
[root@localhost local]# systemctl status gitea
● gitea.service - Gitea
Loaded: loaded (/etc/systemd/system/gitea.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2023-11-18 17:59:04 CST; 1s ago
Process: 2945 ExecStart=/usr/local/gitea web --config /usr/local/gitea/custom/conf/app.ini (code=exited, status=203/EXEC)
Main PID: 2945 (code=exited, status=203/EXEC)
Nov 18 17:59:04 localhost.localdomain systemd[1]: gitea.service: main process exited, code=exited, status=203/EXEC
Nov 18 17:59:04 localhost.localdomain systemd[1]: Unit gitea.service entered failed state.
Nov 18 17:59:04 localhost.localdomain systemd[1]: gitea.service failed.
就是启动不起来 是什么原因
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.