(一)Linux 系统密码破解

1.在grub选项菜单按E进入编辑模式

2.编辑kernel那行 /init 1 (或/single)

3.按B重启

4.进入后执行下列命令

root@#passwd root (设置root的密码)

Enter new unix password:输入新的密码

root@#init 6 /reboot /shutdown -r now


(二)debian linux 系统密码破解

1.在grub选项菜单'Debian GNU/Linux,...(recovery mode)',按e进入编辑模式

2.编辑kernel那行最后面的 ro single 改成 rw single init=/bin/bash,按b执行重启

3.进入后执行下列命令

root@(none)#mount -a

root@(none)#passwd root

root@(none)#reboot


(三)Freebsd 系统密码破解

1.开机进入引导菜单

2.选择每项(按4)进入单用户模式

3.进入之后输入一列命令

root@#mount -a

root@#fsck -y

root@#passwd(修改密码命令)

root@#root(要破解密码的用户名)

Enter new unix password: 输入新的密码

root@#init 6 (重启)


(四)Solaris 系统密码破解

1.在grub选项菜中选择solaris failasfe 项

2.系统提示Do you wish to have it mounted read-write on /a ?[y,n,?] 选择y

3.就进入单用户模式

4.输入下列命令

#passwd

#New passwd:输入新的密码

#Re-enter New passwd:在次输入新的密码

<
by 大尾巴 | 来自 本站原创 | 不指定 2010/04/12 16:58 | 学习 | 评论(0) | 引用(0) | 阅读(139)

如果在用CSS设计布局时遇到BUG,请认真阅读以下内容,非常容易记忆的,不知道哪位高人把CSS BUG编成了顺口溜了!看看好不好记住呢?

一、IE边框若显若无,须注意,定是高度设置已忘记;

二、浮动产生有缘故,若要父层包含住,紧跟浮动要清除,容器自然显其中;

三、三像素文本慢移不必慌,高度设置帮你忙;

四、兼容各个浏览须注意,默认设置行高可能是杀手;

五、独立清除浮动须铭记,行高设无,高设零,设计效果兼浏览;

六、学布局须思路,路随布局原理自然直,轻松驾驭html,流水布局少hack,代码清爽,兼容好,友好引擎喜欢迎。

七、所有标签皆有源,只是默认各不同,span是无极,无极生两仪—内联和块级,img较特殊,但也遵法理,其他只是改造各不同,一个*号全归原,层叠样式理须多练习,万物皆规律。

八、图片链接排版须小心,图片链接文字链接若对齐,padding和vertical-align:middle要设定,虽差微细倒无妨。

九、IE浮动双边距,请用display:inline拘。

十、列表横向排版,列表代码须紧靠,空隙自消须铭记。

Tags: ,
by 大尾巴 | 来自 本站原创 | 不指定 2010/04/06 16:42 | 学习 | 评论(0) | 引用(0) | 阅读(76)

yum -y install vsftpd db4-utils
chkconfig vsftpd on
service vsftpd start

============================
vim /etc/vsftpd/vuser.txt
#格式如下
user1
passwd1
user2
passwd2
============================

vim updb.sh
#输入以下内容
#!/bin/bash
db_load -T -t hash -f /etc/vsftpd/vuser.txt /etc/vsftpd/vuser.db

chmod +x updb.sh

/etc/vsftpd/updb.sh

chmod 600 /etc/vsftpd/vuser.db


==========================================

vim /etc/pam.d/vsftpd

#注释掉所有,增加以下两行

auth required pam_userdb.so db=/etc/vsftpd/vuser
account required pam_userdb.so db=/etc/vsftpd/vuser

===================================================================


mkdir /etc/vsftpd/vuser
cd /etc/vsftpd/vuser
# 建立与用户名同名的文件 写上以指定虚拟用户根目录位置
local_root=/data/www

=========================================

vim /etc/vsftpd/vsftpd.conf
# G 跳到末尾 加入以下内容

pam_service_

Tags: , , ,
by 大尾巴 | 来自 本站原创 | 不指定 2010/04/02 18:29 | 实践 | 评论(0) | 引用(0) | 阅读(92)

wget http://nginx.org/download/nginx-0.8.35.tar.gz
wget http://cn.php.net/get/php-5.2.13.tar.gz/from/this/mirror
wget http://php-fpm.org/downloads/php-5.2.13-fpm-0.5.13.diff.gz
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gz
wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
wget ftp://ftp.kddlabs.co.jp/040/graphics/ImageMagick/ImageMagick-6.6.0-10.tar.gz
wget http://pecl.php.net/get/imagick-2.3.0.tgz
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz



yum -y install gcc gcc-c++ autoconf libjpeg.x86_64 libjpeg-devel.x86_64 libpng.x86_64 libpng-devel.x86_64 freetype.x86_64 freetype-devel.x86_64 libxml2.x86_64 libxml2-devel.x86_64 zlib.x86_64 zlib-devel.x86_64 glibc.x86_64 glibc-devel.x86_64 glib2.x86_64 glib2-devel.x86_64 bzip2.x86_64 bzip2-devel.x86_64 ncurses.x86_64 ncurses-devel.x86_64 curl.x86_64 curl-devel.x86_64 e2fsprogs.x86_64 e2fsprogs-devel.x86_64 krb5-devel.x86_64 libidn.x86_64 libidn-devel.x86_64 openssl.x86_64 openssl-devel.x86_64 libmcrypt.x86_64 libmcrypt-devel.x86_64 mhash.x86_64 mhash-devel.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64


tar zxvf libiconv-1.13.tar.gz
cd libiconv-1.13/
./configure --prefix=/usr/local
make
make install
cd ../

tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
/sbin/ldconfig
./configure
make
make install
cd ../

yum install -y mysql-server mysql-devel.x86_64



mkdir /usr/lib/mysql
ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib/mysql/libmysqlclient.so

ldconfig


groupadd www
useradd -g www www

tar zxvf php-5.2.13.tar.gz
gzip -cd php-5.2.13-fpm-0.5.13.diff.gz | patch -d php-5.2.13 -p1
cd php-5.2.13/
./configure --prefix=/data/webserver/php --with-config-file-path=/data/webserver/php/etc --with-mysql=/usr/include/mysql/mysql.h --with-mysqli=/usr/bin/mysql_config --with-libdir=lib64 --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir=/usr --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --with-xmlrpc --enable-zip
make ZEND_EXTRA_LIBS='-liconv'
make install
cp php.ini-dist /data/webserver/php/etc/php.ini
cd ../

cp /data/webserver/php/sbin/php-fpm /etc/init.d/
chmod +x /etc/init.d/php-fpm


tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5/
/data/webserver/php/bin/phpize
./configure --with-php-config=/data/webserver/php/bin/php-config
make
make install
cd ../

tar jxvf eaccelerator-0.9.6.tar.bz2
cd eaccelerator-0.9.6/
/data/webserver/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/data/webserver/php/bin/php-config
make
make install
cd ../

tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/data/webserver/php/bin/phpize
./configure --with-php-config=/data/webserver/php/bin/php-config --with-pdo-mysql=/usr/bin/mysql_config
make
make install
cd ../
tar zxvf ImageMagick-6.6.0-10.tar.gz
cd ImageMagick-6.6.0-10/
./configure
make
make install
cd ../
tar zxvf imagick-2.3.0.tgz
cd imagick-2.3.0/
/data/webserver/php/bin/phpize
./configure --with-php-config=/data/webserver/php/bin/php-config
make
make install
cd ../


tar zxvf pcre-8.02.tar.gz
cd pcre-8.02/
./configure
make && make install
cd ../

tar zxvf nginx-0.8.35.tar.gz
cd nginx-0.8.35/
./configure --user=www --group=www --prefix=/data/webserver/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install
cd ../


Tags: , , ,
by 大尾巴 | 来自 本站原创 | 不指定 2010/04/02 18:28 | 实践 | 评论(0) | 引用(0) | 阅读(159)
查看内核版本命令:

cat /proc/version
uname -a 
uname -r

查看linux 版本:

lsb_release -a

//下面只对redhat有效
cat /etc/redhat-release
rpm -q redhat-release
by 大尾巴 | 来自 本站原创 | 不指定 2010/04/02 08:56 | 学习 | 评论(0) | 引用(0) | 阅读(74)
分页: 3/47 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]