centos系統shadowsocks搭建

2021-09-24 05:06:07 字數 2339 閱讀 3457

輸入shadowsocks服務密碼

2.輸入ahadowsocks服務埠號

3.選擇假加密方式(如常用的 7) aes-256-cfb)

4.最終配置

1.shadowsocks 配置檔案

vim /etc/shadowsocks.json

單埠:多埠:

, "timeout":300,

"method":"aes-256-cfb",

"fast_open":false

}2.啟動shadowsocks

#啟動ssserver -c /etc/shadowsocks.json -d start

#停止ssserver -c /etc/shadowsocks.json -d stop

#重啟ssserver -c /etc/shadowsocks.json -d restart

2..配置自啟動

vim /etc/systemd/system/shadowsocks.service

3.window端產看埠是否開啟

telnet

4.配置自啟動

[unit]

description=shadowsocks

[service]

timeoutstartsec=0

execstart=/usr/bin/ssserver -c /etc/shadowsocks.json

[install]

wantedby=multi-user.target

3.啟動 shadowsocks 服務

systemctl enable shadowsocks

systemctl start shadowsocks

4.啟動後可以檢視服務狀態

systemctl status shadowsocks -1

[root@vm_0_10_centos system]# systemctl status shadowsocks

● shadowsocks.service - shadowsocks

loaded: loaded (/etc/systemd/system/shadowsocks.service; enabled; vendor preset: disabled)

active: active (running) since thu 2019-06-06 15:34:17 cst; 24min ago

main pid: 2457 (ssserver)

cgroup: /system.slice/shadowsocks.service

└─2457 /bin/python /usr/bin/ssserver -c /etc/shadowsocks.json

jun 06 15:34:17 vm_0_10_centos systemd[1]: started shadowsocks.

jun 06 15:34:17 vm_0_10_centos ssserver[2457]: info: loading config from /etc/shadowsocks.json

jun 06 15:34:17 vm_0_10_centos ssserver[2457]: 2019-06-06 15:34:17 info loading libcrypto from libcrypto.so.10

jun 06 15:34:17 vm_0_10_centos ssserver[2457]: 2019-06-06 15:34:17 info starting server at 0.0.0.0:1001

Centos系統設定

linux的配置檔案儲存於 etc 資料夾中 1.修改啟動順序 vi etc grub.conf 2.sudo配置 root下visudo allows people in group wheel to run all commands wheel all all all wheel all all...

CentOS系統優化

1 最小化安裝。關閉防火牆 systemctl stop firewalld systemctl disable firewalld禁用selinuxsetenforce 0 sed i s enforcing disabled etc sysconfig selinux sed i s enfor...

centos系統降級

適用於centos7.x降級,不適用跨大版本,如7降到6。以7.5降級到7.4為例,步驟如下 配置yum.repo,配置為7.4 降級目標版本 的倉庫,方法略 安裝舊版本核心yum install kernel 3.10.0.0 693 以舊核心重啟grubby info all 找到舊核心 gru...