架设LNMP环境脚本

#ubuntu 初始化脚本
# ubuntu 12.04 desktop  安装开发环境 脚本

 # sudo vim /etc/apt/sources.list
  
  echo "
 deb http://mirrors.sohu.com/ubuntu/ precise main restricted  
 deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted  
 deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
 deb http://mirrors.sohu.com/ubuntu/ precise universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise universe
 deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
 deb http://mirrors.sohu.com/ubuntu/ precise multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
 deb http://mirrors.sohu.com/ubuntu/ precise-security universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
 deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
 deb http://extras.ubuntu.com/ubuntu precise main
 deb-src http://extras.ubuntu.com/ubuntu precise main
 " >/tmp/sohu.sources.list
 
# sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
# sudo mv  /tmp/sohu.sources.list /etc/apt/sources.list
 
#   mongodb

sudo apt-get update
sudo apt-get install ssh
#轻量级 桌面环境  sudo apt-get install lxde

sudo apt-get install lxde


sudo apt-get install  nginx    nodejs npm   subversion php5-fpm    sshfs   php5-cli    php5-mysql     php5-gd    php5-gd   php5-xdebug   php5-xdebug php5-memcache memcached   tree    node-fstream   node-fstream node-fstream node-mkdirp node-tar npm    iotop   php5-curl   php5-tidy   php5-tidy     sysstat 

将上面的文本内容拷贝到新建立的脚本中,执行即可

ubuntu-install.sh

posted on 2012-08-09 18:53 赤脚大仙~ 阅读(...) 评论(...) 编辑 收藏

导航

公告

View Code