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

實測screen會自殺,直接nohup完事 #3

Open
laikitleung opened this issue May 14, 2024 · 7 comments
Open

實測screen會自殺,直接nohup完事 #3

laikitleung opened this issue May 14, 2024 · 7 comments

Comments

@laikitleung
Copy link

RT

@laikitleung
Copy link
Author

實測用nohup沒掉過,不放心可以加個cron任務,每10分鐘檢視一下進程是否存在,不存在就重新運行

@laikitleung
Copy link
Author

網上大部分教程都過於複雜,其實上傳二進制文件和配置文件,然後直接
nohup ./v2ray-freebsd-64_v5.16.1/v2ray run -c ./v2ray-freebsd-64_v5.16.1/config.json >/dev/null 2>&1 &
就行了
盡量用vmess或shadowsocks等帶加密的協議,這樣可以把證書都省略掉。

@laikitleung
Copy link
Author

我的意思就是,沒必要把事情搞那麼複雜,用帶加密的協議,就不需要什麼證書了,cloudflare直接改寫到serv00端口就行了

@laikitleung
Copy link
Author

沒有,手動上傳個freebsd-64可執行文件和寫個配置文件有多難,配置文件就下面幾行
{
"inbounds": [
{
"protocol": "vmess","listen":"0.0.0.0","port": 你開放的端口,
"settings": {"clients": [{"id": "你的UUID","alterId": 0}]},
"streamSettings": {"network":"ws","wsSettings": {"path": "/你想設的目錄","headers": {"Host": "你託管的域名"}}}
}
],
"outbounds": [
{"protocol": "freedom"}
]
}

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

2 participants
@laikitleung and others