關於 apache 的一些模組使用

文章發佈於 : 2006-10-18 12:21:17 | 文章分類 : 裝機紀錄
標籤 :

使用 mod_gzip or mod_deflate 壓縮網頁加快傳輸.
http://gdfan.twbbs.org/blog/2005/06/01/96
http://www.chedong.com/tech/compress.html

使用 rewrite 重新導向網頁,以及防止盜連
http://yblog.org/archive/index.php/6055

 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(1) |

 [轉貼] 用iptables封杀qq及msn

文章發佈於 : 2005-08-27 12:46:59 | 文章分類 : 裝機紀錄
標籤 :

Iptables来限制上QQ
2004-04-23 15:18 pm
作者:作者
来自:Linux知识宝库
现载:http://www.douzhe.com/docs/linuxtips/
地址:无名

QQ的是source-port 4000,destination-port 8000
只需要在FORWARD里加入一条规则就可以
iptables -A FORWARD -i eth0 -p udp --dport 8000 -j DROP

这里的eth0是内网网卡.

要删了这条规则只需要输入:
iptables -D FORWARD 1
这里的1是指它的序号

附:
封杀MSN的方法:
/sbin/iptables -I FORWARD -d gateway.messenger.hotmail.com -j DROP
/sbin/iptables -I FORWARD -p tcp --dport 1863 -j DROP

将IP找出来封了,下面的IP几乎包括了QQ的全部,当然可能还有一些漏掉了,大家一起找啦~
iptables -A FORWARD -s 0/0 -d 202.96.170.164 -j DROP
iptables -A FORWARD -s 0/0 -d 202.96.170.165 -j DROP
iptables -A FORWARD -s 0/0 -d 202.96.170.175 -j DROP
iptables -A FORWARD -s 0/0 -d 202.96.170.188 -j DROP
iptables -A FORWARD -s 0/0 -d 61.135.131.240 -j DROP
iptables -A FORWARD -s 0/0 -d 61.141.194.203 -j DROP
iptables -A FORWARD -s 0/0 -d 61.141.194.231 -j DROP
iptables -A FORWARD -s 0/0 -d 61.141.194.224 -j DROP
iptables -A FORWARD -s 0/0 -d 218.18.95.165 -j DROP
iptables -A FORWARD -s 0/0 -d 219.133.40.15 -j DROP
iptables -A FORWARD -s 0/0 -d 61.144.238.137 -j DROP
iptables -A FORWARD -s 0/0 -d 61.144.238.145 -j DROP
iptables -A FORWARD -s 0/0 -d 61.144.238.146 -j DROP
iptables -A FORWARD -s 0/0 -d 61.144.238.150 -j DROP
iptables -A FORWARD -s 0/0 -d 61.144.238.151 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.254 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.252 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.253 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.251 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.242 -j DROP
iptables -A FORWARD -s 0/0 -d 202.104.129.246 -j DROP
iptables -A FORWARD -s 0/0 -d 202.103.190.61 -j DROP
iptables -A FORWARD -s 0/0 -d 202.103.149.40 -j DROP
iptables -A FORWARD -s 0/0 -d 218.18.95.165 -j DROP
iptables -A FORWARD -s 0/0 -d 218.18.95.140 -j DROP
iptables -A FORWARD -s 0/0 -d 218.18.95.153 -j DROP
iptables -A FORWARD -s 0/0 -d 218.17.209.23 -j DROP
iptables -A FORWARD -s 0/0 -d 218.17.217.103 -j DROP
iptables -A FORWARD -s 0/0 -d 218.17.209.42 -j DROP
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 在MandrakeLinux 10, 10.1 上安裝Apache,PHP,Oracle 9,MySQL

文章發佈於 : 2005-01-07 10:24:18 | 文章分類 : 裝機紀錄
標籤 :

1. One step procedure (uses less disk space and is faster):
zcat ship_9204_linux_disk1.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk2.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk3.cpio.gz | cpio -idmv

2. Create Oracle account
groupadd dba # group of users to be granted with SYSDBA system privilege
groupadd oinstall # group owner of Oracle files
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle

3. Create Oracle directories
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle

mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle

4. Modify /home/oracle/.bash_profile
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1

# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin

I successfully installed Oracle9iR2 without setting the following CLASSPATH environment variable:
# CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
# CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
# export CLASSPATH

5. Install Apache
tar -zxf httpd-2.0.52.tar.gz
cd httpd-2.0.52
./confgiure --prefix=/home/apache --enable-module=so --enable-moduel=most --enable-shared=max
make
make install
ln -s /home/apache/bin/apachectl /etc/rc.d/init.d/apache

6. Install MySQL
useradd mysql
passwd mysql

tar -zxf mysql-4.1.7.tar.gz
cd mysql-4.1.7
./configure --prefix=/home/mysql --enable-local-infile --with-charset=big5 --with-extra-charsets=gb2312,utf8 --with-collation=big5_chinese_ci
make
make install
chown -R mysql:mysql /home/mysql
cp /home/mysql/share/mysql/my-huge.cnf /etc/my.cnf
ln -s /home/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql

su mysql
/home/mysql/bin/mysql_install_db
/home/mysql/share/mysql/mysql.server start

7. Install ICONV
tar -zxf libiconv-1.9.1.tar.gz
cd libiconv-1.9.1
./configure --prefix=/usr/local/lib/iconv
make
make install

8. Install CURL
tar -zxf curl-7.12.2.tar.gz
cd curl-7.12.2
./configure --prefix=/usr/local/lib/curl
make
make install

9. Install PHP
9-1 Adjust oracle variable
cp ociheaders.tar $ORACLE_HOME/rdbms/demo/
cd $ORACLE_HOME/rdbms/demo
tar -xf ociheaders.tar

nm $ORACLE_HOME/lib/libclntsh.so | grep OCINlsCharSetNameToId
>001d915e T OCINlsCharSetNameToId

vi /opt/oracle/product/9.2.0.1/rdbms/demo/oci.h
#define define OCI_NLS_CHARSET_ID 19

9-2 Configure PHP
tar -zxf php-4.3.9.tar.gz
cd php-4.3.9
./configure --prefix=/home/php --with-apxs2=/home/apache/bin/apxs --with-oracle=$ORACLE_HOME --with-oci8=$ORACLE_HOME --with-mysql=/home/mysql --with-xml --with-iconv=/usr/local/lib/iconv --with-curl=/usr/local/lib/curl --with-ftp --enable-ftp --enable-sigchild

make
make install

cp php.ini-dist /home/php/lib/php.ini


 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 安裝並設定 MySQL ODBC in Windows

文章發佈於 : 2004-09-16 02:19:14 | 文章分類 : 裝機紀錄
標籤 :

這份文件是我之前寫給我同事的.
那時候他要使用 PowerBuilder 透過 ODBC 去抓 MySQL 的資料,
今天我在整理我的文件的時候,覺得這個文章或許有些人可以用的到,
所以我就把它轉成PDF傳上來和大家分享

:item2: 下載 安裝並設定MySQL ODBC in Windows
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(1) |

 BlogShares Links Exchange

1. Step into the Nexus 2. Scary Personals 3. Scared Bunny
4. This Is A Cult 5. Its all about me 6. Webby's World
7. Flower Delivery 8. Mindblogging Stuff 9. Random Thoughts by R. U. Serious
10. Palmistry and Hand Analysis 11. Forward-and-Share 12. The Site With the Lamp
13. Free Sample Forager 14. Kosir 15. CRM Reports

 阿維推薦

1. ㄚ凱隨手記 2. ↖「懿」*瘋*堂↗ 3. A.D. Notepad 西元記事本
4. Liang's Blog 5. 硬是要學! 6. 北國風情
7. 綠色工廠 8. 淡淡的天空藍 9. 班大貓廢紙塗鴉部落格
10. 大豆剝落殼 11. SEO网站优化推广 12. lazy Guy
13. PHP 黑店 14. Meson手扎

 Back Links