debian5基本安装

apt-get update
美国:
deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

3,安装ssh
#apt-get install openssh-server
apt-get install ssh

4,查看安装的pkg
dpkg -l 查看系统中已安装软件包信息

5,安装php5-mysql模块
apt-get install apache2

apt-get install php5-mysql
apt-get install php5
apt-get install mysql
6,
apt-get remove exim4 删除MTA.提高启动速度.
apt-get remove nfs-commmon portmap

update-rc.d -f exim4 remove

7,停止ipv6

在档案/etc/modprobe.d/00local加入以下两行:

or aliases

alias net-pf-10 off

alias ipv6 off

 
      
----------------------
ubuntu:
http://www.haw-haw.org/node/529
http://linux.chinaitlab.com/administer/773671.html
Just add one line like this 

blacklist ipv6

to the end of file /etc/modprobe.d/blacklist

 
      
----------------------

8,
Debian系统垃圾清理:
dpkg -l |grep "^rc"|awk '{print $2}' |xargs aptitude -y purge
9,颜色显示目录
1,vi~/.bashrc
2,把下面这几行的注释去掉就可以了,很简单吧。

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

3.这时候我们在试试ls这个命令,呵呵。不一样了吧。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值