您的位置:首页 > 其它

Ubuntu Server安装配置

2009-03-03 19:49 483 查看
日期:2009-03-03

一、通过光盘安装Ubuntu Server 8.10,在选择服务器用途时什么都不选

二、登录系统后,安装SSH,FTP

sudo apt-get install openssh-server
sudo apt-get install vsftpd
三、更新系统

首先备份一下sources.list总是没有坏处的
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo vim /etc/apt/sources.list
增加如下内容:

deb http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse

sudo apt-get update
sudo apt-get upgrade
为了编译安装Apache MySQL PHP,还要安装一些东东:

sudo apt-get install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential

接下来就是安装Apache MySQL PHP了

添加 GD2

sudo apt-get install php5-gd

增加apache的rewrite

sudo a2enmod rewrite
vi /etc/apache2/sites-enabled/000-default
把所有 AllowOverride None 改成 AllowOverride All
sudo apache2ctl restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: