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

安装时报错 runlevel #6

Open
RrrrrCcccc opened this issue Aug 27, 2018 · 13 comments
Open

安装时报错 runlevel #6

RrrrrCcccc opened this issue Aug 27, 2018 · 13 comments

Comments

@RrrrrCcccc
Copy link

sudo update-rc.d shadowsocks enable
报错,
update-rc.d: warning: start runlevel arguments (none) do not match shadowsocks Default-Start values (N 2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match shadowsocks Default-Stop values (0 1 6)
System start/stop links for /etc/init.d/shadowsocks do not exist.

帮忙看下什么情况?

@allenkey666
Copy link
Owner

有没有按照我写的步骤一步一步来?

/etc/init.d/shadowsocks do not exist.

https://github.com/bettermanbao/erx-shadowsocks-libev/releases

@RrrrrCcccc
Copy link
Author

crul那里有问题,下载不到,所以在win7的PC上下载,解压,然后放到/tmp下的,
然后cp做了,rm也做了
报错以后我去看过/etc/init.d/下 shadowsocks文件是有的 但是仍然报错

@allenkey666
Copy link
Owner

win7下做会丢失文件的可执行权限。

下载下来的v20180314.tar.gz 直接放到/tmp,运行 tar -xzf /tmp/v20180314.tar.gz -C /tmp。应该就可以了。

@RrrrrCcccc
Copy link
Author

ls /tmp/
changes_only_dbd21d2f784149988100fcfbcacbd25c
device_model
erx-shadowsocks-libev-20180314.tar.gz
ifp
iptables.out
ubnt-service-gui-start.log
ubnt.socket.cfgd
ubnt.socket.cli
ubnt.socket.ecstatsd
ubnt.socket.platd
ubnt.socket.statsd
ubnt.socket.sysd
tar -xzf /tmp/erx-shadowsocks-libev-20180314.tar.gz -C /tmp
tar: warning: skipping header 'g'
sudo cp -r /tmp/erx-shadowsocks-libev-20180314/* /
sudo rm -rf /tmp/erx-shadowsocks-libev-20180314 /README.md
sudo update-rc.d shadowsocks enable
update-rc.d: warning: start runlevel arguments (none) do not match shadowsocks Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match shadowsocks Default-Stop values (0 1 6)
System start/stop links for /etc/init.d/shadowsocks do not exist.

@RrrrrCcccc
Copy link
Author

ls /etc/init.d/
README pptpd
atd procps
avahi-daemon radvd
bootlogs rc
bootmisc.sh rc.local
checkfs.sh rcS
checkroot-bootclean.sh reboot
checkroot.sh rmnologin
cron rsyslog
dbus sendsigs
ddclient shadowsocks
dhcpd single
dhcpdv6 skeleton
dnsmasq snmpd
ebtables squid3
halt ssh
hostname.sh sudo
hwclock.sh ubnt-halt
killprocs ubnt-init
kmod ubnt-protocols
linux-igd ubnt-protocols-nomonit
mactelnet-server ubnt-rcS
miniupnpd udev
monit udev-mtab
motd umountfs
mountall-bootclean.sh umountnfs.sh
mountall.sh umountroot
mountdevsubfs.sh urandom
mountkernfs.sh vyatta-config-reboot-params
mountnfs-bootclean.sh vyatta-dhcp3-relay
mountnfs.sh vyatta-dhcp3-server
mtab.sh vyatta-keepalived
netplug vyatta-ppp
networking vyatta-pppoe
ntp vyatta-quagga
openvpn vyatta-router
pmacct wide-dhcpv6-client
pppd-dns xl2tpd
pppoe-server

@allenkey666
Copy link
Owner

ls -l /etc/init.d/shadowsocks
看看

@RrrrrCcccc
Copy link
Author

ls -l /etc/init.d/shadowsocks
-rwxr-xr-x 1 root root 5009 Aug 27 05:17 /etc/init.d/shadowsocks
ubnt@ubnt:~$

@allenkey666
Copy link
Owner

试试看这个组合。
sudo update-rc.d shadowsocks defaults
sudo update-rc.d shadowsocks enable

@RrrrrCcccc
Copy link
Author

RrrrrCcccc commented Aug 27, 2018

sudo update-rc.d shadowsocks defaults
Adding system startup for /etc/init.d/shadowsocks ...
/etc/rc0.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc1.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc6.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc2.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc3.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc4.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc5.d/S20shadowsocks -> ../init.d/shadowsocks
sudo update-rc.d shadowsocks enable
update-rc.d: warning: start runlevel arguments (none) do not match shadowsocks Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match shadowsocks Default-Stop values (0 1 6)
Enabling system startup links for /etc/init.d/shadowsocks ...
Removing any system startup links for /etc/init.d/shadowsocks ...
/etc/rc0.d/K20shadowsocks
/etc/rc1.d/K20shadowsocks
/etc/rc2.d/S20shadowsocks
/etc/rc3.d/S20shadowsocks
/etc/rc4.d/S20shadowsocks
/etc/rc5.d/S20shadowsocks
/etc/rc6.d/K20shadowsocks
Adding system startup for /etc/init.d/shadowsocks ...
/etc/rc0.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc1.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc6.d/K20shadowsocks -> ../init.d/shadowsocks
/etc/rc2.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc3.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc4.d/S20shadowsocks -> ../init.d/shadowsocks
/etc/rc5.d/S20shadowsocks -> ../init.d/shadowsocks

sudo /etc/init.d/shadowsocks start
iptables v1.4.21: Set gfwlist doesn't exist.

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Set gfwlist doesn't exist.

Try iptables -h' or 'iptables --help' for more information. iptables: No chain/target/match by that name. iptables: No chain/target/match by that name. ipset v6.23: The set with the given name does not exist [ ok ] Starting ss-local: ss-local. [ ok ] Starting ss-redir: ss-redir. [ ok ] Starting dns-forwarder: dns-forwarder. [ ok ] Starting ss-watchdog: ss-watchdog. sudo /etc/init.d/shadowsocks status`
[ ok ] ss-redir is running.
[ ok ] ss-local is running.
[FAIL] redsocks is not running ... failed!

@RrrrrCcccc
Copy link
Author

格式搞不定。。。
看下面的提示,应该就OK了吧?

@allenkey666
Copy link
Owner

应该ok了,iptables那个错误可以忽略。
重启一下路由,看看ss-redir有没有自动运行。有就彻底ok了。

@RrrrrCcccc
Copy link
Author

RrrrrCcccc commented Aug 27, 2018

可以自动运行,非常感谢。

总结一下,就是中间加一步
sudo update-rc.d shadowsocks defaults
就OK了,对吧?

@allenkey666
Copy link
Owner

看来是的

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