##问: 我怎么用docker 部署ss server
##答:
- 购买vps: 这个途径比较多。 网上一搜一大把。
- vps上安装docker:
方法很多, 比如
ubuntu
上可以使用sudo apt-get install docker.io
我采用的vps服务提供商提供的docker镜像。 - 使用docker 安装ss-server:
"download-queue-size": 5, | |
"encryption": 1, | |
"idle-seeding-limit": 30, | |
"idle-seeding-limit-enabled": false, | |
"incomplete-dir": "/mnt/BIGHUSK/torrents", | |
"incomplete-dir-enabled": false, | |
"lpd-enabled": false, | |
"message-level": 2, | |
"peer-congestion-algorithm": "", | |
"peer-limit-global": 240, |
##问: 我怎么用docker 部署ss server
##答:
ubuntu
上可以使用sudo apt-get install docker.io
我采用的vps服务提供商提供的docker镜像。#from https://github.com/cnAnonymous/hosts | |
218.254.1.13 r1---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r2---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r3---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r4---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r5---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r6---sn-i3b7kn76.googlevideo.com | |
218.254.1.13 r1---sn-i3beln7r.googlevideo.com | |
218.254.1.13 r2---sn-i3beln7r.googlevideo.com | |
218.254.1.13 r3---sn-i3beln7r.googlevideo.com |
#encoding=utf-8 | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import sys | |
import datetime | |
uid="11111" #用户名 | |
pwd="11111" #密码 |
<?php | |
$url = 'https://my.frantech.ca/cart.php?a=add&pid=1'; | |
$content = file_get_contents($url); | |
if (preg_match("/Out of Stock/i", $content)) { | |
echo "我擦,没货!"; | |
} else { | |
echo "我勒个去,终于有货了!"; | |
sendMail(); |
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf | |
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备 | |
# Version 2.0 | |
[General] | |
# 日志等级: warning, notify, info, verbose (默认值: notify) | |
loglevel = notify | |
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS | |
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理 | |
# 设置中.) |
For Debian 7 and Ubuntu 12+, add the following line to /etc/apt/sources.list | |
deb http://shadowvpn.org/debian wheezy main | |
Then | |
apt-get update && apt-get install shadowvpn | |
service shadowvpn restart |
echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list | |
apt update | |
apt -t jessie-backports install shadowsocks-libev -y | |
cat > /etc/shadowsocks-libev/config.json <<EOF | |
{ | |
"server":"0.0.0.0", | |
"server_port":443, | |
"local_port":1080, | |
"password":"foobar!", |
1330-1147-9851-4130-3716-7375 | |
1330-1813-5332-3018-4123-4267 | |
1330-1051-6550-8129-0825-6051 | |
1330-1422-5419-8706-7784-9778 | |
1330-1190-8727-8855-7379-9047 | |
1330-1167-8857-3801-9962-4540 | |
1330-1789-8301-0298-0184-8899 | |
1330-1269-7959-3810-9366-9145 | |
1330-1971-4830-5668-6067-1762 | |
1330-1912-2628-0850-0232-4869 |
wget http://download2.mikrotik.com/routeros/6.40.5/chr-6.40.5.img.zip -O chr.img.zip && \ | |
gunzip -c chr.img.zip > chr.img && \ | |
apt-get update && \ | |
apt install -y qemu-utils pv && \ | |
qemu-img convert chr.img -O qcow2 chr.qcow2 && \ | |
qemu-img resize chr.qcow2 `fdisk /dev/vda -l | head -n 1 | cut -d',' -f 2 | cut -d' ' -f 2` && \ | |
modprobe nbd && \ | |
qemu-nbd -c /dev/nbd0 chr.qcow2 && \ | |
echo "Give some time for qemu-nbd to be ready" && \ | |
sleep 2 && \ |