Skip to content

Instantly share code, notes, and snippets.

@liuyu121
Created July 23, 2015 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuyu121/1fd8f59e3476f6f308b2 to your computer and use it in GitHub Desktop.
Save liuyu121/1fd8f59e3476f6f308b2 to your computer and use it in GitHub Desktop.
install latest LNMP + redis + etc.
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
# install nginx
# add the repository ppa
sudo add-apt-repository ppa:nginx/stable
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo add-apt-repository ppa:ondrej/php5
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository -y ppa:rwky/redis
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo add-apt-repository ppa:chris-lea/node.js
# update the repository
sudo apt-get update
# install all stuffs
sudo apt-get install -y nginx
sudo apt-get install -y php5-fpm php5-mysql php5 php-pear php5-cli php5-common php5-curl php5-dev php5-gd php5-mcrypt
sudo apt-get install -y git
sudo apt-get install -y mysql-client-core-5.6 mysql-client-5.6 mysql-server-5.6
sudo apt-get install -y redis-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment