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
 
这里可以修改SSH的默认PORT
http://www.wyxuan.com/119.html

vim /etc/ssh/sshd_config

Port 22
 

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这个命令,呵呵。不一样了吧。
 





10,安装常用软件
apt-get install screen
apt-get install w3m




11,修改密码
passwd

修改用户密码
su user


12,修改化lamp
http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/

默认安装的php是5.2.6
5.3的PHP性能上有所优化,也与wampserver同步得上

1,添加source
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all



2,添加key
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -


3,升级
apt-get update
apt-get dist-upgrade



但这方法虽然可以升级php,但会出现其它LIB出错的问题。

http://www.cnblogs.com/taosim/articles/2012928.html
索性从debian 5 升到 6


1,增加source
deb http://ftp.us.debian.org/debian/ squeeze main
deb-src http://ftp.us.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://volatile.debian.org/debian-volatile squeeze/volatile main
deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main



2,升级
# apt-get update
# apt-get install apt dpkg aptitude
# apt-get dist-upgrade

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值