ubutn12.04 安装配置nginx fpm mysql apc

mysql:

sudo apt-get install mysql-server mysql-client

nginx:

sudo apt-get install nginx
sudo /etc/init .d /nginx start

php5:
sudo apt-get install php5-fpm

php扩展,用于支持mysql:
sudo apt-cache search php5
sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5- ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

sudo /etc/init .d /php5-fpm restart

apc:

apt-get install libpcre3-dev

sudo pecl install apc

配置:/etc/php5/conf.d/apc.ini

extension=apc.so

apc.cache_by_default=off


pecl_http:

sudo apt-get install php-pear

sudo apt-get install php5-dev

sudo apt-get install libcurl3-openssl-dev

sudo pecl install pecl_http

sudo nano /etc/php5/apache2/php.ini

添加:extension=http.so


memcached:

$ sudo apt-get install memcached

$sudo memcached -d -m 128 -p11211 -u root


重启:

$ sudo service php5-fpm restart

$ sudo service nginx restart


mercurial版本控制系统-------------------------------------

$sudo apt-get install mercurial

将私钥放到/home/sean/.ssh/








你可能感兴趣的:(ubutn12.04 安装配置nginx fpm mysql apc)