RAMHost的VPS

讀了很多VPS評測的文章,最後選擇了非常有誘惑力的Ramhost (基本只有好評)

第一次使用ssh登錄

https://ramhost.us/?page=vps-console

添加用戶

adduser liwen

安裝sshd

apt-get install openssh-server

安裝vim

apt-get install vim

安裝sudo

apt-get install sudo

安裝apache/php5

apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-cgi php5-mysql php5-mcrypt php5-gd php5-sqlite

安裝ZendOptimizer (參考:http://www.debiantutorials.net/installing-zend-optimizer/)

wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

安裝mysql

apt-get install mysql-server

添加用戶到www-data組

usermod -G www-data liwen
id liwen
uid=1000(liwen) gid=1000(liwen) groups=1000(liwen),33(www-data)

解決locale錯誤信息

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

解决方法

apt-get install locales
dpkg-reconfigure locales

需要中文支持

locale-gen zh_CN.GBK
locale-gen zh_CN.GB2312
locale-gen zh_CN.GB18030

查看vps狀態
https://my.ramhost.us/v2/vps/cp/?page=main

标签: , ,