ubuntu server 12.04 LTS的安装要点

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值