手动安装xx
wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.3.5/shadowsocks-libev-3.3.5.tar.gz
tar -zxvf shadowsocks-libev-3.3.5.tar.gz
cd shadowsocks-libev-3.3.5
./configure --disable-documentation
make
make install

cd ~/shadowsocks-libev-3.3.5
mkdir /etc/shadowsocks-libev
cp ./debian/config.json /etc/shadowsocks-libev/config.json
ln -s /usr/local/bin/ss-server /usr/bin/ss-server
cp rpm/SOURCES/systemd/shadowsocks-libev.service /usr/lib/systemd/system/
cp rpm/SOURCES/systemd/shadowsocks-libev.default /etc/sysconfig/shadowsocks-libev

#修改配置
vi /etc/shadowsocks-libev/config.json
#使用方法
systemctl enable shadowsocks-libev
systemctl start shadowsocks-libev
systemctl stop shadowsocks-libev
systemctl status shadowsocks-libev
systemctl disable shadowsocks-libev
#卸载
systemctl stop shadowsocks-libev
systemctl disable shadowsocks-libev
rm -f /usr/lib/systemd/system/shadowsocks-libev.service
rm -f /etc/sysconfig/shadowsocks-libev
rm -f /etc/shadowsocks-libev/config.json
rm -f /usr/bin/ss-server
rm -f /usr/local/bin/ss-local/bin/ss-local
rm -f /usr/local/bin/ss-local/bin/ss-manager
rm -f /usr/local/bin/ss-local/bin/ss-nat
rm -f /usr/local/bin/ss-local/bin/ss-redir
rm -f /usr/local/bin/ss-local/bin/ss-server
rm -f /usr/local/bin/ss-local/bin/ss-tunnel
rm -f /usr/local/include/shadowsocks.h
rm -f /usr/local/lib/libshadowsocks-libev.a
rm -f /usr/local/lib/libshadowsocks-libev.la
#下载安装v2ray-plugin
wget https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.2/v2ray-plugin-linux-amd64-v1.3.2.tar.gz
tar -zxvf v2ray-plugin-linux-amd64-v1.3.2.tar.gz
cp v2ray-plugin_linux_amd64 /usr/local/bin/v2ray-plugin

{
"server":"0.0.0.0",
"server_port":8888,
"password":"your_password",
"timeout":300,
"method":"xchacha20-ietf-poly1305",
"fast_open":true,
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp",
"plugin":"v2ray-plugin",
"plugin_opts":"server;path=/path"
}
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注