##问: 我怎么用docker 部署ss server
##答:
- 购买vps: 这个途径比较多。 网上一搜一大把。
- vps上安装docker:
方法很多, 比如
ubuntu
上可以使用sudo apt-get install docker.io
我采用的vps服务提供商提供的docker镜像。 - 使用docker 安装ss-server:
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!", |
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 |
# 你可以从该 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, 那么这些值会被写入到系统网络代理 | |
# 设置中.) |
<?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(); |
#encoding=utf-8 | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
import sys | |
import datetime | |
uid="11111" #用户名 | |
pwd="11111" #密码 |
#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 |
##问: 我怎么用docker 部署ss server
##答:
ubuntu
上可以使用sudo apt-get install docker.io
我采用的vps服务提供商提供的docker镜像。"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, |