Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个怎么设置开机自启啊 #51

Open
gs314520 opened this issue Sep 1, 2021 · 1 comment
Open

这个怎么设置开机自启啊 #51

gs314520 opened this issue Sep 1, 2021 · 1 comment

Comments

@gs314520
Copy link

gs314520 commented Sep 1, 2021

fatedier/frp#176
按照源址说的只需要把frps.service复制一份到/etc/systemd/system目录下即可。
可是一键脚本安装下来的frps.service这个文件在哪里啊,没找到啊

@gs314520
Copy link
Author

gs314520 commented Sep 1, 2021

debian10使用systemd配置开机自启

vi /etc/systemd/system/frps.service 新建此文件,并写入以下内容

[Unit]
Description=frps daemon

[Service]
Type=simple
ExecStart=/usr/local/frps/frps -c /usr/local/frps/frps.ini

[Install]
WantedBy=multi-user.target

启动并设为开机自启。
$ systemctl start frps
$ systemctl enable frps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant