2016年4月18日 星期一

[VPS] - 當 Demo & Backup & 翻牆 Shadowsock ... etc Server

最近購買了一個小型的 VPS  https://my.frantech.ca/cart.php
LV BuyVM-128MB  , 兩年才 30 塊美金 , 很划算
機房在 Las Vegas美西 , 對於台灣的回應時間平均 17xms,
尚可接受 ><" , 不然日本或新加坡機房對台灣的 latency 比較友善

64 bytes from vps.raptornode.com (209.xx.xx.71): icmp_seq=1 ttl=54 time=172 ms
64 bytes from vps.raptornode.com (209.xx.xx.71): icmp_seq=2 ttl=54 time=174 ms
64 bytes from vps.raptornode.com (209.xx.xx.71): icmp_seq=3 ttl=54 time=173 ms

啟用Ubuntu 14.x

ssh 進去後 , 
沒有SWAP 檔 , 自己加上去 ,  
因為要Run Nginx + php + MariaDB + Others

# free -m
                   total       used       free     shared    buffers     cached
Mem:           128        113         14         66          0        105

# 新增 260M
# dd if=/dev/zero of=/var/swapfile bs=1024 count=261440
261440+0 records in
261440+0 records out
267714560 bytes (268 MB) copied, 1.34082 s, 200 MB/s

# /sbin/mkswap /var/swapfile
# /sbin/swapon  /var/swapfile


# Reboot 開機自動啟用
1. 加到 /etc/fstab
2. /etc/rc.local 也可

沒有留言:

張貼留言