linux基础:快速搭建平台

时间:2019-02-19
本文章向大家介绍linux基础:快速搭建平台,主要包括linux基础:快速搭建平台使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

获取github的学生优惠

注册github


https://education.github.com/pack在此网址中使用大学的邮箱进行认证,之后获取digitalocean的50$优惠码。

 注册DigitalOcean


1、使用邀请码进行注册,可以获得10$优惠 

注册网址:https://m.do.co/c/4b5aaf12c603

2、注册后需充值5$,之后和客服沟通将gitrhub的优惠码登录账户。

具体操作 :https://blog.csdn.net/dta0502/article/details/81261807

2、选择租赁合适的服务器(最便宜的就能满足日常使用)

注意选择ubuntu14.04系统!

shadowsocks安装:


使用root用户登录,运行以下命令:

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


之后运行脚本 ,并选择需要的版本,设置端口号、密码、加密格式。

安装完成后,脚本提示如下:

Congratulations, your_shadowsocks_version install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Encryption Method:your_encryption_method
 
Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients)
 ss://your_encryption_method:your_password@your_server_ip:your_server_port
Your QR Code has been saved as a PNG file path:
 your_path.png
 
Welcome to visit:https://teddysun.com/486.html
Enjoy it!


卸载方法:


若已安装多个版本,则卸载时也需多次运行(每次卸载一种)

使用root用户登录,运行以下命令:

./shadowsocks-all.sh uninstall
 启动脚本:
启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。

Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | status

ShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | status

Shadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | status

Shadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status

安装锐速


安装运行以下命令

wget xiaofd.github.io/ruisu.sh && bash ruisu.sh


安装时重启属于正常现象。

测试是否运行 

ps aux | grep appex


之后再windows端安装ss
https://github.com/shadowsocks/shadowsocks-windows/releases

打开后根据上面的ip地址、端口号、加密方式、密码来配置连接的服务器。

 

参考

https://teddysun.com/486.html/comment-page-53#comments

https://www.jianshu.com/p/19ab389820ef