标签:
1:修改源(我使用163的源)直接修改/etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
2:添加ppa源
$ apt-get install python-software-properties $ add-apt-repository ppa:ondrej/php5 (php.5.5,若使用php5.4.x add-apt-repository ppa:ondrej/php5-oldstable) $ apt-get update
3:安装php5.5(fpm+各个模块)
$ apt-get install php5-fpm $ apt-get install php5-mysql php5-gd #还有其他扩展按需安装
4:安装 Nginx
$ apt-get install nginx $ service nginx start #启动服务
5:安装MySQL
$ apt-get install mysql-server mysql-client
标签:
原文地址:http://www.cnblogs.com/apanly/p/5117747.html