正在加载

标签:vps

学用VPS(二):apache、mysql、php5等

1.安装apache
sudo apt-get install apache
http://wiki.ubuntu.org.cn/Apache%E5%AE%89%E8%A3%85%E8%AE%BE%E7%BD%AE

web根目录:/etc/apache2/sites-enabled/000-default

2.安装mysql
http://wiki.ubuntu.org.cn/MySQL%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97

sudo apt-get install mysql-server

sudo apt-get install mysql-client

3.安装php5
sudo apt-get install php5

4.中文
sudo apt-get install language-support-zh

5.常用命令

Read the rest of this page »

学用VPS(一):在Ubuntu上安装pptpd服务来构建VPN

   买来VPS后,一般来说都要安装Apache、Mysql、PHP,即构建LAMP的环境,不过这是一个繁杂的工作,在这个之前,还是先构建一个VPN以供自己使用。

    参考了几篇文章,最后整理个人的使用经验如下:

1.安装服务器软件 

    执行如下命令,安装pptpd协议

    apt-get install pptpd

2.配置相应的IP地址,编辑/etc/pptpd.conf

   增加如下两行,大概的意思是指vps的机器用的ip地址为192.168.1.1,通过pptp服务连上来的客户端的ip范围在192.168.1.235—192.168.1.245范围之间。

   localip 192.168.1.1
   remoteip 192.168.1.235-238,192.168.1.245

3.添加拨号用户,编辑 /etc/ppp/chap-secrets 

Read the rest of this page »