当前位置:网站首页>V self built n_ Deployment and use
V self built n_ Deployment and use
2022-07-23 16:24:00 【I'll go to bed at twelve】
Use ss build vpn
First, you need to buy your own server , At the same time, the public address is required
Suppose we already have a server
1 Install necessary software
install python Of pip Tools
yum install python-setuptools -y
wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate
tar -xzvf pip-1.3.1.tar.gz
cd pip-1.3.1
python setup.py install
pip install shadowsocks
2 The configuration file
create profile
mkdir /etc/shadowsocks
vi /etc/shadowsocks/config.json
{
"server":"0.0.0.0",
"server_port":1024,
"password":"your_password",
"timeout":600,
"method":"aes-256-cfb",
"fast_open": false
}
notes :
“server”: It's you Vultr Server's ip Address
"server_port" and "password" It can be set according to your own requirements
If you need to open multiple ports at the same time ,config.json The content of can be set as follows :
{
"server":"0.0.0.0",
"port_password": {
"8388": "your_password1",
"8389": "your_password2"
},
"timeout":600,
"method":"aes-256-cfb",
"fast_open": false
}
3 Start stop command and start-up self start ( It is necessary to )
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stopvi /etc/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks
After=network.target
[Service]
Type=forking
PIDFile=/run/shadowsocks/server.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /run/shadowsocks
ExecStartPre=/bin/chown root:root /run/shadowsocks
ExecStart=/usr/bin/ssserver --pid-file /var/run/shadowsocks/server.pid -c /etc/shadowsocks/config.json -d start
Restart=on-abort
User=root
Group=root
UMask=0027
[Install]
WantedBy=multi-user.target
Give authority
chmod 755 /etc/systemd/system/shadowsocks.service
systemctl start shadowsocks
systemctl enable shadowsocks
4 The security group can release the corresponding port
5 Timing task
# Timed shutdown
1 19 * * * bash /root/aliyun-cli.sh
55 23 * * * bash /root/aliyun-cli.sh
# Start service when system restarts
@reboot sleep 15 && /etc/init.d/ssr restart
边栏推荐
- Flutter | 指定页面回传值的类型
- Kubernetes 基本概念和部署
- FPGA HLS multiplier (pipeline vs. ordinary simulation)
- Stm32f103+rfid-rc522 module realizes simple card reading and writing demo "recommended collection"
- 2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case
- Translucenttb recommendations
- 软件详细设计模板
- 中年危机,35岁被退休,打工人拿什么来抗衡资本家?
- 数据库的备份和还原
- lc marathon 7.23
猜你喜欢

死锁的3种处理策略

Idées de conception sur l'initialisation des paramètres d'entrée de page

lc marathon 7.23

2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case

lc marathon 7.23

C#中单例模式的实现

Esp8266 nodemcu flash file system (spiffs)

满足多种按键的高性价比、高抗干扰触摸IC:VK3606D、VK3610I、VK3618I 具有高电源电压抑制比

Redis installation

7、 Logic of JMeter sending request
随机推荐
vulnstack红日-4
pgsql误删除pg_wal文件后,服务启动失败
ORA-01654错误:表空间满了,插入失败
快递单证智能OCR识别,助力物流行业数字化升级
问题随记 —— 无法打开包括文件: “dirent.h”: No such file or directory
MySQL 灵魂 16 问,你能撑到第几问?
Bean Validation核心组件篇----04
苹果x充电慢是什么原因_iPhone 12支持15W MagSafe无线充电,未来苹果手机的充电会发生什么?_充电器…
死锁的3种处理策略
Who is responsible for the problems of virtual anchor and idol endorsement products? Lawyer analysis
黑马程序员-接口测试-四天学习接口测试-第三天-postman高级用法,newman例集导出导入,常用断言,断言json数据,工作原理,全局,环境变量,时间戳,请求前置脚本,关联,批量执行测试用例
FPGA-HLS-乘法器(流水线对比普通仿真)
After effects tutorial, how to create animation in after effects?
STM32F103+RFID-RC522模块 实现简单读卡写卡demo「建议收藏」
Vinka推出高抗干扰VK36N系列触摸IC:VK36N1D,VK36N2P,VK36N3B,VK36N4I 使用便利
信箱通信-
Umijs - data transmission between main and sub applications of Qiankun
Three handling strategies of deadlock
GO语言学习——复习包、接口、文件操作
七、jmeter发出请求的逻辑