Explorar el Código

Add files via upload

蘭雅sRGB hace 7 años
padre
commit
afb97ca8e5
Se han modificado 9 ficheros con 685 adiciones y 0 borrados
  1. 48 0
      Debian_utf-8.md
  2. 30 0
      fee_u2b.md
  3. 103 0
      frp2link.md
  4. 158 0
      frp_setup.md
  5. 59 0
      vps_backup.md
  6. 101 0
      vps_onekey.md
  7. 65 0
      vps_virmach.md
  8. 77 0
      vultr_ipv6.md
  9. 44 0
      vultr_vps.md

+ 48 - 0
Debian_utf-8.md

@@ -0,0 +1,48 @@
+---
+title: Debian远程SSH汉字utf-8乱码解决等
+date: 2018-7-2
+tags:  [linux,vps]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+### Debian远程SSH汉字utf-8乱码解决
+	aptitude install locales
+	dpkg-reconfigure locales
+
+### 配置编码进入选择(默认也选择):
+	en_US.UTF8
+
+### 查看默认字符集是否是en_US.UTF-8
+	$ vim /etc/default/locale
+	LANG=en_US.UTF-8
+
+
+### 配置编码中文utf-8
+	dpkg-reconfigure locales
+
+### 系统环境默认的区域设置成
+	zh_CN.UTF-8
+
+### 退出重新登陆ssh 才起作用
+
+### vim和控制台高亮
+	wget -O .vimrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_vimrc
+	wget -O .bashrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_bashrc
+
+
+### 安装 监控软件htop 
+	apt-get install htop
+
+### 网页服务器 nginx
+	apt-get install nginx
+	
+### 修改默认主页地址 和 目录索引显示
+	$ vim /etc/nginx/sites-enabled/default
+
+	root /var/www;
+	autoindex on;
+
+
+### 设置学习的东西
+https://gist.github.com/nickfox-taterli

+ 30 - 0
fee_u2b.md

@@ -0,0 +1,30 @@
+---
+title: 免费出国留学
+date: 2018-6-4
+tags:  [shadowsocks]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+### 免费出国留学 1   [https://doub.io/sszhfx/]( https://doub.io/sszhfx/)
+
+Windows 打开本地DNS文件:
+
+	C:\Windows\System32\drivers\etc\hosts
+
+在该文件最后追加一行:
+
+	104.28.2.6 doub.io
+
+- 然后访问https://doub.io,如果不行就清理浏览器缓存。
+- 注意:必须通过 HTTPS 访问才行。
+
+
+
+### 免费出国留学 2 [https://my.freess.today/](https://my.freess.today/)
+- 这个网站电脑手机的软件都全了
+- 通过扫描二维吗,获取临时服务器,不过安卓手机没Google play 好像不能扫描的
+- 所以先安装 windows 的软件吧,哪个可以扫描识别二维码的
+
+
+### 免费出国留学 3 [http://free-ss.cf/](http://free-ss.cf/)

+ 103 - 0
frp2link.md

@@ -0,0 +1,103 @@
+---
+title: frp连接2个服务器
+date: 2018-6-4
+tags:  [frp]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+# 修改开机脚本
+	# 龙芯8089D debian版的开机脚本
+	vim /etc/init.d/rc.local
+
+启动2个配置脚本,连2个服务器
+写到开机脚本里
+
+	sleep 3
+	cd /root/frp  && ./frpc -c frpc.ini > /dev/null 2>&1 &
+	
+	sleep 3
+	cd /root/frp  && ./frpc -c frpc.ini.hk > /dev/null 2>&1 &
+
+---
+
+再分别 frpc.ini 和 frpc.ini.hk 两个客户端配置文件
+
+### 这个配置用来连接到自己架设的frps服务器
+
+```c++
+frpc.ini
+
+# 主配置
+[common]
+server_addr = srgb.xyz
+server_port = 7000
+token = www.nat.ee
+user = srgb
+
+# 日志
+log_file = ./frpc.log
+log_level = info
+log_max_days = 7
+
+[web]
+type = http
+local_port = 80
+local_ip = 127.0.0.1
+custom_domains = srgb.xyz , s.srgb.xyz
+
+[ssh]
+type = tcp
+local_port = 22
+remote_port = 11122
+local_ip = 127.0.0.1
+custom_domains = s.srgb.xyz
+
+```
+
+###  连接 免费frp香港公共服务
+注意客户端版本和服务器不要相差太多
+
+[https://www.nat.ee/frp/hkfrp](https://www.nat.ee/frp/hkfrp)
+访问服务器公告,或者配置更新
+
+
+```c++
+frpc.ini.hk
+ 
+#  https://www.nat.ee/frp/hkfrp
+#  免费frp香港公共服务
+
+# 主配置
+[common]
+server_addr = hk.nat.ee
+server_port = 7000
+token = www.nat.ee
+user = hk
+
+# 日志
+#log_file = ./frpc2.log
+log_level = info
+log_max_days = 7
+
+[http]
+type = http
+local_port = 80
+local_ip = 127.0.0.1
+custom_domains = srgb.nwct.bid , hk.srgb.xyz , frp.srgb.xyz
+
+[ssh]
+type = tcp
+local_port = 22
+remote_port = 11122
+local_ip = 127.0.0.1
+custom_domains = srgb.nwct.bid
+
+```
+
+---
+调试配置文件的时候,可以先把log_file 注释掉。
+
+使用screen 命令,让frpc程序运行在后台
+
+	screen ./frpc -c frpc.ini

+ 158 - 0
frp_setup.md

@@ -0,0 +1,158 @@
+---
+title: frps配置测试
+date: 2018-6-4
+tags:  [frp]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+### frps服务端 一键安装脚本
+
+[https://github.com/clangcn/onekey-install-shell](https://github.com/clangcn/onekey-install-shell)
+
+ssh登陆命令行输入3行命令就可以安装
+
+	wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
+	chmod 700 ./install-frps.sh
+	./install-frps.sh install
+
+
+装好后,就可以用了,不过改成以下配置,为了测试方便点
+
+### 管理器使用方法
+	Usage: /etc/init.d/frps {start|stop|restart|status|config|version}
+	
+	frps stop     # 先停止
+	frps config   # 配置服务器
+	frps start    # 启动服务 
+
+
+### 服务端配置 frps.ini
+----
+	[common]
+	bind_addr = 0.0.0.0
+	bind_port = 7000
+	kcp_bind_port = 7000
+	bind_udp_port = 7001
+	token = www.nat.ee
+	vhost_http_port = 8080
+	vhost_https_port = 443
+	allow_ports = 10001-19999
+	#subdomain_host = nat.ee
+	max_pool_count = 6
+	max_ports_per_client = 3
+	tcp_mux=true
+	heartbeat_timeout = 90
+	authentication_timeout = 900
+	#[admin]
+	dashboard_port = 7500
+	dashboard_user = admin
+	dashboard_pwd = admin
+	#[log]
+	#log_file = ./frps.log
+	log_level = info
+	log_max_days = 7
+
+------
+
+为了测试把把域名 www.srgb.xyz 和 s.srgb.xyz 都绑定到服务器IP
+
+使用同名CNAME 也可以,也可以直接hosts里设置,不知是否可行
+
+客户1和2  user 不能相同
+
+然后 custom_domains =  分别 www.srgb.xyz  和 s.srgb.xyz
+
+服务器本身占用80端口了
+所以 www.srgb.xyz:8080     s.srgb.xyz:8080 访问测试设备
+
+www.srgb.xyz:7500  查看登陆情况
+
+---
+
+### 客户端1 配置
+这台机器是 龙芯 8089D,下载mips 的客户端, [https://github.com/fatedier/frp/releases](https://github.com/fatedier/frp/releases)
+
+### frpc.ini    
+	# 主配置
+	[common]
+	server_addr = srgb.xyz
+	server_port = 7000
+	token = www.nat.ee
+	user = srgb
+	
+	# 日志
+	#log_file = ./frpc.log
+	log_level = info
+	log_max_days = 7
+	
+	[srgb]
+	type = http
+	local_port = 80
+	local_ip = 127.0.0.1
+	custom_domains = www.srgb.xyz
+
+
+----
+
+客户端2 配置  ,这台机器是PC机,windows系统,
+
+### frpc.ini 
+	# 主配置
+	[common]
+	server_addr = srgb.xyz
+	server_port = 7000
+	token = www.nat.ee
+	user = pc
+	
+	# 日志
+	#log_file = ./frpc.log
+	log_level = info
+	log_max_days = 7
+	
+	[srgb]
+	type = http
+	local_port = 80
+	local_ip = 127.0.0.1
+	custom_domains = s.srgb.xyz
+
+---
+
+因为一般服务器都有web服务,主机80端口都是已经占用,只能使用其他端口访问。
+
+	# s.srgb.xyz:8080     绑定的子域名后面有跟一个端口号
+
+### 使用Nginx 反代理frp,省略后缀端口口
+
+	vim /etc/nginx/sites-enabled/default
+如果使用一键 lnmp 安装的配置文件,可以建立 vhost 然后再手工修改
+
+WEB主机配置文件末尾添加
+
+	map $http_x_forwarded_for $clientRealip {
+	   "" $remote_addr;
+	   ~^(?P<firstAddr>[0-9\.]+),?.*$  $firstAddr;
+	}
+	
+	server {
+	       listen 80;
+	       server_name frp.srgb.xyz;  #为frp的控制台绑定一个域名,这样你就可以用http://frp.srgb.xyz访问你的控制台了
+	       location / {
+	           proxy_pass http://127.0.0.1:7500;  #此处的7500就是你安装frp时设置的dashboard_port端口
+	           proxy_set_header Host $host;
+	           proxy_set_header X-Real-IP $clientRealip;  # $remote_addr;
+	           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	       }
+	}
+	
+	server {
+	       listen 80;
+	       server_name s.srgb.xyz;   #也可以将所有的srgb.xyz子域名都绑定,
+	       location / {
+	           proxy_pass http://127.0.0.1:8080; #此处的8080就是你安装frp时设置的vhost_http_port端口
+	           proxy_set_header Host $host;
+	           proxy_set_header X-Real-IP $clientRealip;  # $remote_addr;
+	           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	       }
+	}
+	

+ 59 - 0
vps_backup.md

@@ -0,0 +1,59 @@
+---
+title: Vultr_IPV6 机器安装设置,备份和恢复
+date: 2018-7-2
+tags:  [vps]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+
+### 获取自己所需服务软件的信息
+	ps aux
+可以得到软件的安装目录和配置文件目录
+
+```	
+/usr/bin/shadowsocks-server -c /etc/shadowsocks-go/config.json
+/usr/local/frps/frps -c /usr/local/frps/frps.ini
+/bin/bash /etc/init.d/brook start
+./brook servers -l :2333 srgb.xyz
+screen ./fuck_net
+screen iperf3 -s
+```
+
+
+### 打包程序和配置
+```
+tar -czvf  ss_frp.tar.gz  /etc/init.d/brook  /usr/local/brook/brook  /usr/local/brook/brook.conf   \
+    /usr/bin/shadowsocks-server   /etc/shadowsocks-go/config.json   /etc/init.d/shadowsocks-go  \
+    /usr/local/frps/frps   /usr/local/frps/frps.ini  /etc/init.d/frps  /root/fuck_net
+```
+
+个人备份的 [ss_frp.tar.gz](https://github.com/hongwenjun/vps_setup)
+
+
+## 搬迁备份文件,使用wget
+
+- 可以先不删除原来机器,新建立机器使用wget把备份文件挪过去
+- 本笔记,由于使用Vultr_IPV6的机器,所以使用wget先下载到本地电脑了
+
+### 本地上传到服务器/tmp 
+
+	$ scp /c/Users/vip/Desktop/ss_frp/ss_frp.tar.gz root@[2001:19f0:8001:c85:5400:01ff:fe91:7ed8]:/tmp/ss_frp.tar.gz
+ 
+ 
+### 服务器上解压和开启服务
+
+```
+cd / && tar -xvf /tmp/ss_frp.tar.gz
+/etc/init.d/frps  start && /etc/init.d/brook start && /etc/init.d/shadowsocks-go start
+```
+
+### 注册服务,禁止服务
+
+```
+sudo systemctl enable frps
+sudo systemctl enable brook 
+sudo systemctl enable shadowsocks-go
+
+sudo systemctl disable frps #禁止的脚本
+```

+ 101 - 0
vps_onekey.md

@@ -0,0 +1,101 @@
+---
+title: VPS 一键脚本 全家桶
+date: 2018-6-4
+tags:  [vps]
+---
+
+蘭雅sRGB 龙芯小本服务器  http://sRGB.vicp.net
+	
+
+### 一个优秀的跨平台 Socks5代理软件 —— Brook 一键安装管理脚本
+
+	wget -N --no-check-certificate https://softs.loan/Bash/brook.sh && chmod +x brook.sh && bash brook.sh
+ 
+如果上面这个脚本无法下载,尝试使用备用下载:
+
+	wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/brook.sh && chmod +x brook.sh && bash brook.sh
+
+```c
+  Brook 一键管理脚本 [v1.1.10]
+  ---- Toyo | doub.io/brook-jc3 ----
+
+  0. 升级脚本
+————————————
+  1. 安装 Brook
+  2. 升级 Brook
+  3. 卸载 Brook
+————————————
+  4. 启动 Brook
+  5. 停止 Brook
+  6. 重启 Brook
+————————————
+  7. 设置 账号配置
+  8. 查看 账号信息
+  9. 查看 日志信息
+ 10. 查看 链接信息
+————————————
+
+ 当前状态: 未安装
+
+ 请输入数字 [0-10]:
+```
+
+### ShadowsocksR 单/多端口 一键管理脚本
+
+	wget -N --no-check-certificate https://softs.loan/Bash/ssr.sh && chmod +x ssr.sh && bash ssr.sh
+
+备用下载地址(上面的链接无法下载,就用这个):
+
+	wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh
+
+```c
+  请输入一个数字来选择菜单选项
+ 
+ 1. 安装 ShadowsocksR
+ 2. 更新 ShadowsocksR
+ 3. 卸载 ShadowsocksR
+ 4. 安装 libsodium(chacha20)
+————————————
+ 5. 查看 账号信息
+ 6. 显示 连接信息
+ 7. 设置 用户配置
+ 8. 手动 修改配置
+ 9. 切换 端口模式
+————————————
+ 10. 启动 ShadowsocksR
+ 11. 停止 ShadowsocksR
+ 12. 重启 ShadowsocksR
+ 13. 查看 ShadowsocksR 日志
+————————————
+ 14. 其他功能
+ 15. 升级脚本
+ 
+ 当前状态: 已安装 并 已启动
+ 当前模式: 单端口
+ 
+请输入数字(1-15):
+
+```
+
+### 一键安装ss 
+	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 2>&1 | tee shadowsocks-all.log
+
+### 一键安装最新内核并开启 BBR 脚本
+	wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
+
+## LNMP一键安装包 V1.5
+详细请访问 [https://lnmp.org/install.html](https://lnmp.org/install.html)
+
+### 登陆后运行:
+	screen -S lnmp
+## 安装LNMP稳定版
+	wget -c http://soft.vpser.net/lnmp/lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp
+
+## 如需要无人值守安装
+[https://lnmp.org/auto.html](https://lnmp.org/auto.html)
+
+点击 生成 按钮会生成对应命令,示例如下
+
+	wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && LNMP_Auto="y" DBSelect="2" DB_Root_Password="lnmp.org" InstallInnodb="y" PHPSelect="5" SelectMalloc="1" ./install.sh lnmp

+ 65 - 0
vps_virmach.md

@@ -0,0 +1,65 @@
+---
+title: VirMach 最便宜的主机折腾
+date: 2018-6-15
+tags:  [vps]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+	
+### Virmach 低价屠夫,$0.7/月,一年7.5美元,有促销可能更加便宜
+
+官方购买地址 [https://billing.virmach.com/cart.php?gid=1](https://billing.virmach.com/cart.php?gid=1)
+
+也可以搜索 Virmach + 优惠码,从国内vps介绍网站入口进去
+
+选择 OpenVZ Linux VPS,
+ 
+### Micro+
+- 192MB RAM
+- 10GB Disk
+- 250GB Bandwith @ 1 Gbps
+- Shared Intel HT CPU 1 Core @ 1GHz
+- 1x IPv4 Addresses
+
+### 价格是 $1.00 USD Monthly
+
+点 Order NoW 蓝色按钮就去, 看到 Billing Cycle 结算方式
+
+- Order annually to get 2 months of free service ; only pay for 10 months!
+- (整年定购只需支付10个月,赠2个月免费服务!)
+
+- $1.00 USD Mothly
+- $2.75 USD Quarterly
+- $10.00 USD Annually  通过下拉框选择,1年,打折后是7.5美元
+
+- 服务器选择有存货,选Los Angeles(洛杉矶),或美西的效果会好点
+- 操作系统选 Debian ,下拉选择Debian 8 X64 或者9 X64
+
+- 特价产品要勾选 Limited Support Agreement  (有限支持协议),不然没法加入购物车
+
+### 加入购物车后,去开启隐藏的 优惠码 填入栏
+
+购物车页面:
+
+[https://billing.virmach.com/cart.php?a=view](https://billing.virmach.com/cart.php?a=view)
+
+- 以下以Chrome 浏览器介绍 开启隐藏的 优惠码 填入栏
+- F12 开启调试,键盘ctrl+F 查找 couponform ,定位到一下HTML语句
+
+```html
+<form method="post" action="/cart.php?a=view" class="form-horizontal well well-sm" id="couponform" style="display:none;">
+```
+- 修改样式 display:none ,改成 yes,就会出现隐藏的优惠码输入框
+
+- 还有另一种 开启隐藏的 优惠码 填入栏 方法
+
+	键盘 上上下下左右左右BA
+
+### 支付方式可以选支付宝或者paypal
+因为是特价机型,不能退款,换IP是要钱的
+
+### 然后就安装些  一键全家桶,先慢慢折腾了
+安装加速后,可以看1080P
+
+	https://github.com/hongwenjun/srgb/tree/master/vps_setup

+ 77 - 0
vultr_ipv6.md

@@ -0,0 +1,77 @@
+---
+title: Vultr_IPV6 机器安装设置,添加 IPv4 教程
+date: 2018-7-2
+tags:  [vps]
+---
+
+蘭雅sRGB 龙芯小本服务器 [http://sRGB.vicp.net](http://srgb.vicp.net)
+
+
+### 本地电脑开启ipv6支持,可以使用XX-Net的 enable_ipv6.bat
+- XX-Net\code\3.11.10\gae_proxy\local\ipv6_tunnel\enable_ipv6.bat
+
+### 参考 Vultr 2.5 美金添加 IPv4 教程
+
+[https://www.lijingquan.net/archives/4802](https://www.lijingquan.net/archives/4802)
+
+登陆 Vultr;  新建了一个IPv4和一个IPv6 Only Debian系统
+
+进入Server Information,选 Settings,再选IPv4, Additional IPv4 IP,先增加一个收费ipv4
+点击  networking configuration 链接,可以看到
+
+![](img/interfaces.png)
+
+ssh  root@[IPV6] 远程登陆,先修改密码  
+
+	vim /etc/network/interfaces
+	service networking restart
+ 
+修改之前的看到的网络配置,修改为静态ip,重新启动网络。
+(这时候其实已经可以用IPv4了,外网可以ping进来了,但是不要使用IPv4连接,修改路由表过程会断IPv4.)
+只是使用 ping  8.8.8.8 网络还是阻断的,要修改默认的路由。
+
+查看默认的路由
+
+```
+root@vultr:~# route -n
+Kernel IP routing table
+Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
+0.0.0.0         100.64.0.1      0.0.0.0         UG    0      0        0 ens3
+10.25.96.0      0.0.0.0         255.255.240.0   U     0      0        0 ens7
+100.64.0.0      0.0.0.0         255.192.0.0     U     0      0        0 ens3
+169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 ens3
+207.148.112.0   0.0.0.0         255.255.254.0   U     0      0        0 ens3
+root@vultr:~# ip route show
+default via 100.64.0.1 dev ens3 onlink 
+10.25.96.0/20 dev ens7 proto kernel scope link src 10.25.96.3 
+100.64.0.0/10 dev ens3 proto kernel scope link src 100.68.5.186 
+169.254.0.0/16 dev ens3 scope link 
+207.148.112.0/23 dev ens3 proto kernel scope link src 207.148.113.46 
+root@vultr:~# 
+```
+看到走的还是运营商NAT,删掉他,并添加默认路由,要使用是刚才添加的公网IPV4和实际的网卡编号.
+	
+	route r del default gw 100.64.0.1
+	ip route add default via 207.148.113.46 dev ens3
+	
+具体如下:
+```
+root@vultr:~# route del default gw 100.64.0.1
+root@vultr:~# ip route list
+10.25.96.0/20 dev ens7 proto kernel scope link src 10.25.96.3 
+100.64.0.0/10 dev ens3 proto kernel scope link src 100.68.5.186 
+169.254.0.0/16 dev ens3 scope link 
+207.148.112.0/23 dev ens3 proto kernel scope link src 207.148.113.46 
+root@vultr:~# ip route add default via 207.148.113.46 dev ens3
+root@vultr:~# ip route list
+default via 207.148.113.46 dev ens3 
+10.25.96.0/20 dev ens7 proto kernel scope link src 10.25.96.3 
+100.64.0.0/10 dev ens3 proto kernel scope link src 100.68.5.186 
+169.254.0.0/16 dev ens3 scope link 
+207.148.112.0/23 dev ens3 proto kernel scope link src 207.148.113.46 
+
+```
+
+再使用 ping 8.8.8.8 如果通畅了,就表示增加的ipv4可以使用了  
+然后就可以使用 一键脚本安装服务器了,安装好软件后,可以把ipv4删除掉
+节省一下月租费。

+ 44 - 0
vultr_vps.md

@@ -0,0 +1,44 @@
+---
+title: Vultr_VPS学习折腾
+date: 2018-5-17
+tags:  [vps]
+---
+
+蘭雅sRGB 龙芯小本服务器 | [sRGB.vicp.net](http://sRGB.vicp.net)
+	
+### 选择便宜的vps
+新注册Vultr用户赠送25美元,不要用使用支付宝充值,使用信用卡或者paypal
+[https://www.vultr.com/promo25b](https://www.vultr.com/promo25b?ref=7425413)  点进去看有没$25的英文图案。
+如果没有活动,就看自己选择了。 昨天注册充值10美元,赠送25美元,推特发朋友圈再送3美元。
+如果选择 迈阿密2.5美元的主机,可以玩15个月了,不过赠送的金额可能要1年用掉,所以可以5美元和2.5美元的轮换玩。
+看视频现在试用5美元西雅图的主机还不错。
+
+帮他做个广告,点这个链接,可能有25美元赠送的。
+[https://www.vultr.com/promo25b?ref=7425413](https://www.vultr.com/promo25b?ref=7425413)
+
+### 修改密码
+	passwd root
+
+### 一键安装ss 
+	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 2>&1 | tee shadowsocks-all.log
+
+### 一键安装最新内核并开启 BBR 脚本
+	wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
+
+### vim和控制台高亮
+	wget -O .vimrc http://srgb.vicp.net/srgb/vim/_vimrc
+	wget -O .bashrc http://srgb.vicp.net/srgb/vim/_bashrc
+
+### 安装 监控软件htop 和网页服务器 nginx
+	apt-get install htop
+	apt-get install nginx
+
+### 默认主页根在 /var/www/html, 可以修改default文件
+	vim /etc/nginx/sites-enabled/default 
+
+### 从github 迁移博客 到vps
+	git clone https://github.com/用户名/用户名.github.io.git www
+
+可以 git pull 命令写到定时脚本里