debian 4.0rc2 安装记

1.安装

下载了debian-4rc2-CD1.iso(180M的那个也不错,40M的还是要在安装中下载不少东西)
刻录
安装,...
选安装源的时候,我选了否,选'是'的时候要下载很久,莫名其妙
选择组件,什么都没选。
2.配置
dpkg-reconfiguration locales
增加了中文 zh-CN.UTF-8 等
reboot
login
vi /etc/apt/sources.list 修改安装源


apt-get update
apt-get dist-upgrade 很慢,连security.debian.org Ctrl-C了

 

将DHCP改为静态

修改 /etc/network/interfaces
iface eth0 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
/etc/resolv.conf里面设置DNS服务器,
nameserver 192.168.0.1

 

3.安装常用软件
apt-get install gpm
apt-get install rcconf
apt-get install ssh
apt-get install apache2

 

F&Q

Q:remove后,rcconf里还有配置信息,如何完全卸载包:

A:apt-get remove --purge apache

 

Q:Apache2 安装了,不能访问

A: /etc/init.d/apache2 start,see some error?

 

Q:如何安装jdk5

A:#vi /etc/apt/sources.list

Add the following lines

# for sun-java packages in unstable
deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free

Save and exit the file.

Now you need to Update apt using the following command

#apt-get update

Install jdk using the following command

#apt-get install sun-java5-jdk

Check the java version using the following command

#java -version

 

Q:what's your /etc/apt/sources.list like?

A: #vi /etc/apt/sources.list

 

deb http://mirrors.geekbone.org/debian/ etch main
deb http://debian.cn99.com/debian/ etch main
deb http://security.debian.org/ etch/updates main contrib
deb http://ftp.debian.org/debian/ unstable non-free

 

Q: how to install tomcat

A:#apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值