文章出處

yum -y install gcc gcc-c++ openssl-devel
yum
install nodejs npm install -g shadowsocks nohup ssserver & 后臺運行 vi /usr/lib/node_modules/shadowsocks/config.json systemctl start firewalld firewall-cmd --zone=public --add-port=80/tcp --permanent 開端口
firewall-cmd --zone=public --remove-port=80/tcp --permanent 關端口 firewall
-cmd --query-port=1000/tcp 查詢端口是否開放

重啟防火墻


firewall-cmd --reload

ps -aux | grep “test.sh” #a:顯示所有程序 u:以用戶為主的格式來顯示 x:顯示所有程序,不以終端機來區分
firewall-cmd  --list-port 查詢已經開放的端口

netstat -lnp|grep 8888 查看端口被什么應用占用



wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log


啟動:/etc/init.d/shadowsocks start

停止:/etc/init.d/shadowsocks stop

重啟:/etc/init.d/shadowsocks restart

查看狀態:/etc/init.d/shadowsocks status


centos pptp vpn
wget http://mirrors.linuxeye.com/scripts/vpn_centos.sh
chmod +x ./vpn_centos.sh
./vpn_centos.sh

systemctl enable pptpd.service

開機自啟動:
/etc/rc.d/rc.local 最后一行加命令
Centos 7 中 /etc/rc.d/rc.local 這個文件權限降低了。你可以看下 ll /etc/rc.d/rc.local 看他的權限。
你可以試著加下權限。
chmod +x /etc/rc.d/rc.local
/serverspeeder/bin/serverSpeeder.sh start
/serverspeeder/bin/serverSpeeder.sh stop


開啟vps加速
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
//url
https://www.91yun.co/serverspeeder91yun

檢查服務狀態
systemctl status pptpd.service (服務詳細信息)
systemctl is-active pptpd.service (僅顯示是否 Active)



方案一:使用cnpm

安裝:

    
npm install cnpm -g

或許你在中國,那么你可以能需要使用這個源:淘寶NPM鏡像

    
npm install cnpm -g --registry=https://registry.npm.taobao.org

cnpm install xxx

后臺運行:
nohup  ./run.sh   >/dev/null   &

 


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()