1.change /etc/apt/sources.list
2.sudo apt-get update 3.sudo apt-get upgrade //安装apache2 sudo apt-get install apache2 安装成功后用如下命令检查 service apache2 status //安装mysql sudo apt-get install mysql-server mysql-client sudo apt-get install imagemagick libmagickwand-dev //安装php 1. 查询卸载已安装PHP sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` 2. sudo add-apt-repository ppa:ondrej/php 3. sudo apt-get update sudo apt-get install php5.6 sudo apt-get install libapache2-mod-php5 php5-cgi php5-mysql php5-cli php5-gd //sudo apt-get install php5-curl sudo apt-get install curl libcurl3 libcurl3-dev php5-curl sudo apt-get install phpmyadmin 下载Composer:curl -sS https:///installer | php 安装Composer:/usr/bin/php composer.phar --version 设置全局命令:sudo mv composer.phar /usr/local/bin/composer 查看是否安装与设置成功:composer -version 安装 XCache 优化缓存 //start apache sudo service apache2 restart //install curl //sudo apt-get install curl
|
|
来自: arthur_cai > 《Linux》