FAQ:SS服务端

来自Wikioe
跳到导航 跳到搜索


修改配置文件之后服务重启失败的问题

使用仓库安装的 ss-libev,遇到了——修改配置文件之后服务重启失败的问题:

  • 刚刚安装时,启动、开机启动,都正常,修改配置文件重启就失败;
  • 和修改安装脚本安装的一样,在本地修改配置文件,上传覆盖服务器配置文件(检查了配置文件权限、所有者,均正常),结果 ss 服务就启动失败了;
不想管了(可能上传覆盖配置文件时要先停止服务?或者因为添加的 v2ray 插件?)

详情:

  1. 第一次:(这一次插件配置有问题,但应该不是原因)
    [root@newjersey ~]# systemctl status shadowsocks-libev -l
    ● shadowsocks-libev.service - Shadowsocks-libev Default Server Service
       Loaded: loaded (/usr/lib/systemd/system/shadowsocks-libev.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Wed 2021-12-01 19:33:46 UTC; 2min 17s ago
         Docs: man:shadowsocks-libev(8)
      Process: 1416 ExecStart=/usr/bin/ss-server -c $CONFFILE $DAEMON_ARGS (code=exited, status=255)
     Main PID: 1416 (code=exited, status=255)
    
    Dec 01 19:33:46 newjersey systemd[1]: Stopped Shadowsocks-libev Default Server Service.
    Dec 01 19:33:46 newjersey systemd[1]: Started Shadowsocks-libev Default Server Service.
    Dec 01 19:33:46 newjersey ss-server[1416]: 2021-12-01 19:33:46 INFO: plugin "/usr/binv2ray-plugin" enabled
    Dec 01 19:33:46 newjersey ss-server[1416]: 2021-12-01 19:33:46 INFO: UDP relay enabled
    Dec 01 19:33:46 newjersey ss-server[1416]: 2021-12-01 19:33:46 INFO: initializing ciphers... chacha20-ietf-poly1305
    Dec 01 19:33:46 newjersey ss-server[1416]: 2021-12-01 19:33:46 INFO: using nameserver: 8.8.8.8
    Dec 01 19:33:46 newjersey ss-server[1416]: 2021-12-01 19:33:46 INFO: tcp server listening at 127.0.0.1:55823
    Dec 01 19:33:46 newjersey systemd[1]: shadowsocks-libev.service: main process exited, code=exited, status=255/n/a
    Dec 01 19:33:46 newjersey systemd[1]: Unit shadowsocks-libev.service entered failed state.
    Dec 01 19:33:46 newjersey systemd[1]: shadowsocks-libev.service failed.
    
  2. 第二次:(???)
    [root@newjersey ~]# systemctl status shadowsocks-libev -l
    ● shadowsocks-libev.service - Shadowsocks-libev Default Server Service
       Loaded: loaded (/usr/lib/systemd/system/shadowsocks-libev.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Wed 2021-12-01 19:40:54 UTC; 11s ago
         Docs: man:shadowsocks-libev(8)
      Process: 1437 ExecStart=/usr/bin/ss-server -c $CONFFILE $DAEMON_ARGS (code=exited, status=255)
     Main PID: 1437 (code=exited, status=255)
    
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 INFO: UDP relay enabled
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 INFO: initializing ciphers... chacha20-ietf-poly1305
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 INFO: using nameserver: 8.8.8.8
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 INFO: tcp server listening at 127.0.0.1:36569
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 INFO: udp server listening at 0.0.0.0:443
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 ERROR: [udp] bind: Permission denied
    Dec 01 19:40:54 newjersey ss-server[1437]: 2021-12-01 19:40:54 ERROR: [udp] bind() error
    Dec 01 19:40:54 newjersey systemd[1]: shadowsocks-libev.service: main process exited, code=exited, status=255/n/a
    Dec 01 19:40:54 newjersey systemd[1]: Unit shadowsocks-libev.service entered failed state.
    Dec 01 19:40:54 newjersey systemd[1]: shadowsocks-libev.service failed.