热搜词
发表于 2013-4-15 09:56:41 | 显示全部楼层 |阅读模式
1,ubuntu server安装过程中选择Openssh Server和LAMP(包含了MYSQL,APACHE和PHP)两个安装包选项
2,安装完毕后,为了加快用apt-get进行安装包的速度,修改apt的源列表文件:
     cd /etc/apt
     cp source.list  source.list.us
     vim source.list  
     采用163的镜像源,如下:
      deb http://mirrors.163.com/ubuntu/ precise main restricted
      deb-src http://mirrors.163.com/ubuntu/ precise main restricted
      deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
      deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
      deb http://mirrors.163.com/ubuntu/ precise universe
      deb-src http://mirrors.163.com/ubuntu/ precise universe
      deb http://mirrors.163.com/ubuntu/ precise-updates universe
      deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
      deb http://mirrors.163.com/ubuntu/ precise multiverse
      deb-src http://mirrors.163.com/ubuntu/ precise multiverse
      deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
      deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
      deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
      deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
      deb http://mirrors.163.com/ubuntu/ precise-security main restricted
      deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
      deb http://mirrors.163.com/ubuntu/ precise-security universe
      deb-src http://mirrors.163.com/ubuntu/ precise-security universe
      deb http://mirrors.163.com/ubuntu/ precise-security multiverse
      deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
      deb http://extras.ubuntu.com/ubuntu precise main
      deb-src http://extras.ubuntu.com/ubuntu precise main
3,apt-get update,此时如果报如下错误:
     W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
      解决办法如下:
       apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
      成功后,再执行一次apt-get update
4,安装C/C++开发环境
    sudo apt-get install build-essential //安装主要编译工具 gcc, g++, make
    sudo apt-get install autoconf automake
    sudo apt-get install flex bison
    sudo apt-get install binutils-doc cpp-doc gcc-doc glibc-doc stl-manual //安装相关文档
5,安装memcached和PHP的客户端
    sudo apt-get install memcached php5-memcache
   /etc/init.d/apache2 restart
全部评论0
回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2024-12-24 10:13 , Processed in 0.152647 second(s), 26 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2024 Discuz! Team