文章目录

自从买了这vps以来就一直没好好用过,最近有写个blog程序的冲动就重新配置一下。

先从控制面板里把这个系统重装成ubuntu 10.10 32位

然后就开始删掉一些不必要的东西:

apt-get --purge remove apache2
apt-get --purge remove apache2-common
apt-get --purge remove sendmail
apt-get autoremove
apt-get clean

安装编译器:

apt-get install build-essential
apt-get install gcc

设置 locale

先把 locale 设置正常:

cp /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/local
vi /var/lib/locales/supported.d/local

用 dd 命令删啊删,只留下en_系列和zh_系列 , 或者其他你要的 locale

重新生成 locale:

locale-gen --purge

安装nginx8.54

用wget去nginx官方上把源码包下过来:

./configure --prefix=/usr/local/nginx

中间可能会出现以下错误:

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
1
sudo aptitude install libpcre3-dev
1
2
3
4
5
6
7
8
9
10
11
12
./configure: error: SSL modules require the OpenSSL library.
You can either do

not enable

the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source


with nginx by using --with-openssl=

<path> option
1
sudo aptitude install libssl-dev

然后用make&make install安装

安装uwsgi

首先要安装libxml2-dev模块和python-dev模块:

apt-get install libxml2-dev python-dev

再安装virtualenv用来管理python环境

文章目录