zazaluMonster / zazaluMonster.github.io

hexo博客以及其备份,请勿fork备份数据,扰者必究
https://zazalu.space/
MIT License
0 stars 0 forks source link

ubuntu18.04配置shadowsocks客户端 #144

Open zazaluMonster opened 4 years ago

zazaluMonster commented 4 years ago

https://zazalu.space/2019/06/06/ubuntu18-04%E9%85%8D%E7%BD%AEshadowsocks%E5%AE%A2%E6%88%B7%E7%AB%AF/

一个普通人的博客,有时候写点IT,有时候写点生活

SZooo commented 4 years ago

为什么会报下面的错,跟着步骤来的: Job for shadowsocks.service failed because the control process exited with error code. See "systemctl status shadowsocks.service" and "journalctl -xe" for details.

SZooo commented 4 years ago

shadowsocks.service - Shadowsocks Client Service Loaded: loaded (/etc/systemd/system/shadowsocks.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-10-02 16:36:30 CEST; 22s ago Process: 16343 ExecStart=/usr/local/bin/sslocal -c /etc/shadowsocks.json -d start (code=exited, status=2)

Oct 02 16:36:30 wemii sslocal[16343]: --pid-file=PID_FILE pid file for daemon mode Oct 02 16:36:30 wemii sslocal[16343]: --log-file=LOG_FILE log file for daemon mode Oct 02 16:36:30 wemii sslocal[16343]: --user=USER username to run as Oct 02 16:36:30 wemii sslocal[16343]: -v, -vv verbose mode Oct 02 16:36:30 wemii sslocal[16343]: -q, -qq quiet mode, only show warnings/errors Oct 02 16:36:30 wemii sslocal[16343]: --version show version information Oct 02 16:36:30 wemii sslocal[16343]: Online help: https://github.com/shadowsocks/shadowsocks Oct 02 16:36:30 wemii systemd[1]: shadowsocks.service: Control process exited, code=exited status=2 Oct 02 16:36:30 wemii systemd[1]: shadowsocks.service: Failed with result 'exit-code'. Oct 02 16:36:30 wemii systemd[1]: Failed to start Shadowsocks Client Service.

zazaluMonster commented 4 years ago

@SZooo shadowsocks.service - Shadowsocks Client Service Loaded: loaded (/etc/systemd/system/shadowsocks.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-10-02 16:36:30 CEST; 22s ago Process: 16343 ExecStart=/usr/local/bin/sslocal -c /etc/shadowsocks.json -d start (code=exited, status=2)

Oct 02 16:36:30 wemii sslocal[16343]: --pid-file=PID_FILE pid file for daemon mode Oct 02 16:36:30 wemii sslocal[16343]: --log-file=LOG_FILE log file for daemon mode Oct 02 16:36:30 wemii sslocal[16343]: --user=USER username to run as Oct 02 16:36:30 wemii sslocal[16343]: -v, -vv verbose mode Oct 02 16:36:30 wemii sslocal[16343]: -q, -qq quiet mode, only show warnings/errors Oct 02 16:36:30 wemii sslocal[16343]: --version show version information Oct 02 16:36:30 wemii sslocal[16343]: Online help: https://github.com/shadowsocks/shadowsocks Oct 02 16:36:30 wemii systemd[1]: shadowsocks.service: Control process exited, code=exited status=2 Oct 02 16:36:30 wemii systemd[1]: shadowsocks.service: Failed with result 'exit-code'. Oct 02 16:36:30 wemii systemd[1]: Failed to start Shadowsocks Client Service.

journalctl -xe一下, 把最新一次失败日志放出来

SZooo commented 4 years ago

你这个只是配置客户端的吗?

zazaluMonster commented 4 years ago

@SZooo 你这个只是配置客户端的吗?

对啊,你看标题。 服务端不写

SZooo commented 4 years ago

那我几天前搞错了,服务端现在搭好了,但是还有个问题请教你:我连上服务端几分钟后就不能连接了,再去看shadowsocks服务端提示 Connection reset by peer

zazaluMonster commented 4 years ago

@SZooo 为什么会报下面的错,跟着步骤来的: Job for shadowsocks.service failed because the control process exited with error code. See "systemctl status shadowsocks.service" and "journalctl -xe" for details.

乍一看,我觉得跟网络,防火墙有关, 仔细研究下详细日志. 由于这些东西时间久了, 我觉得我忘了差不多了(害羞害羞), 没法给你提供你想要的回答, 很抱歉. 不过我可以分享你我解决问题的方式, 你可以尝试在搜索引擎搜索Connection reset by peer site:github.com, 我觉得应该会有很多可以参考的答案

SZooo commented 4 years ago

@zazaluMonster

@SZooo 为什么会报下面的错,跟着步骤来的: Job for shadowsocks.service failed because the control process exited with error code. See "systemctl status shadowsocks.service" and "journalctl -xe" for details.

乍一看,我觉得跟网络,防火墙有关, 仔细研究下详细日志. 由于这些东西时间久了, 我觉得我忘了差不多了(害羞害羞), 没法给你提供你想要的回答, 很抱歉. 不过我可以分享你我解决问题的方式, 你可以尝试在搜索引擎搜索Connection reset by peer site:github.com, 我觉得应该会有很多可以参考的答案

ok,多谢