代码改变世界

debain 命令

2014-06-20 15:13  boyjump  阅读(469)  评论(0)    收藏  举报

# reboot    #重启
# shutdown -h now #关机
apt-get install lib32z1 如果libz.so.1: cannot open shared object file: No such file or directory

在/etc/ld.so.conf中加入/usr/lib 增加类库所有路径 /sbin/ldconfig –v」来更新一下才会生效
Shift+PageUP|PageDown 翻页

查找文件
find / -type f -name "*.log"
查看端口 netstat -ano
iptables 规则
https://wiki.debian.org/iptables
http://www.zhcn.org/539/
创建django site
django-admin.py startproject mysite

启动django site
python manage.py runserver 8080
安装apache
 apt-get install apache2

su 切换root

su user

netstat 查看端口

chkconfig 查看服务

apt-get install vim 安装vim

apt-get install openssh-server 安装ssh

sudo apt-get install gcc 安装gcc

chmod -R 777 xx 递归更改权限

apt-get install zlib1g-dev 安装zlib

apt-get install bzip2 安装bzip2软件包

解压 
tar –xvf file.tar //解压 tar包 
tar -xzvf file.tar.gz //解压tar.gz 
tar -xjvf file.tar.bz2 //解压 tar.bz2 
tar –xZvf file.tar.Z //解压tar.Z 
unrar e file.rar //解压rar 
unzip file.zip //解压zip