LinuxÏÂApache 2.2, MySQL 5.0ºÍPHP 5.0µÄ°²×°ÓëÅäÖÃ
¡¾×ª¡¿http://www.linuxsir.org/main/?q=node/241
1.°²×°»·¾³
²Ù×÷ϵͳ£ºRed Hat Linux Enterprise AS 4.0
Êý¾Ý¿â£ºMySQL 5.0.24
Web·þÎñÆ÷£ºApache 2.2.3
½Å±¾ÓïÑÔ£ºPHP 5.1.6
2.°²×°MySQL 5.0.24
-------------ÏÂÔØÈí¼þ°ümysql-5.0.24.tar.gz£¬µØÖ·http://www.mysql.com-------------
# tar zvxf mysql-5.0.24.tar.gz //½âѹËõ
# cd mysql-5.0.24 //½øÈë½âѹËõºóµÄÎļþĿ¼
# ./configure --prefix=/usr/local/mysql \ //É趨°²×°Ä¿Â¼
--enable-thread-safe-client \ //±àÒëḬ̈߳²È«°æµÄ¿Í»§¶Ë¿â
--without-debug \ //¹Ø±Õdebug¹¦ÄÜ
--localstatedir=/data/mysqldata \ //É趨Êý¾Ý¿âÎļþĿ¼
# make //±àÒë
# make install //°²×°
# /usr/local/mysql/bin/mysql_install_db //³õʼ»¯ÊÚȨ
# chown –R root:root /usr/local/mysql //ÎļþÊôÐÔ¸ÄΪrootÓû§
# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf //¸´ÖÆÅäÖÃÎļþ
----------------------------------Æô¶¯MySQL·þÎñ----------------------------------
# /usr/local/mysql/bin/mysqld_safe --user=root & //Æô¶¯MySQL
----------------------------------ÐÞ¸ÄMySQLÃÜÂë----------------------------------
# /usr/local/mysql/bin/mysqladmin -uroot password mysqlsecret //ÐÞ¸ÄÃÜÂë
----------------------------------¹Ø±ÕMySQL·þÎñ----------------------------------
# /usr/local/mysql/bin/mysqladmin -uroot -pmysqlsecret shutdown //¹Ø±ÕMySQL
3.°²×°Apache 2.2.3
-------------ÏÂÔØÈí¼þ°ühttpd-2.2.3.tar.gz£¬µØÖ·http://www.apache.org-------------
# tar zvxf httpd-2.2.3.tar.gz
# cd httpd-2.2.3
# ./configure --prefix=/usr/local/apache \
--enable-module=most \
--enable-shared=max
# make
# make install
----------------------------------Æô¶¯Apache·þÎñ----------------------------------
# /usr/local/apache/bin/apachectl start
----------------------------------¹Ø±ÕApache·þÎñ----------------------------------
# /usr/local/apache/bin/apachectl stop
----------------------------------ÖØÆôApache·þÎñ----------------------------------
# /usr/local/apache/bin/apachectl restart
4.°²×°PHP 5.1.6
-------------------ÏÂÔØÈí¼þ°üphp-5.1.6.tar.gz£¬µØÖ·www.php.net------------
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
Fedora ÏÂÊÇÓÐ/etc/inittabÎļþµÄ£¬¶øÔÚUbuntuÖÐÊÇûÓÐÕâÒ»¸öÎļþµÄ£¬ÒòΪÔÚubuntuÖУ¬inittabÈí¼þ°üÒѾ±»upstartÈí¼þ°üÌæ»»ÁË£¬ËùÓеÄÅäÖÃÐÅÏ¢¶¼ÔÚ/etc/event.d/Ŀ¼Ï¡£inittabÎļþÔÚinittabÀïÃæÕâÑùÃèÊöµÄ£¬This inittab file describes how the INIT process should set up the system in a certain run-level.¼´ÔÚlin ......
1. Makefile
ʹÓÃMakefileÀ´±àÒëÄ£¿é£¬²»ÄÜÖ±½ÓʹÓÃgcc¡£
ʵ¼ÊʹÓõÄÊǵ±Ç°»î¶¯ÄÚºËÄ£¿éµÄMakefileÀ´Íê³ÉÏà¹Ø¹¤×÷µÄ¡£
ifneq ($(KERNELRELEASE),)
obj-m := hello.o calculate.o
else
KDIR := /lib/modules/2.6.18-53.el5xen/build
all:
&nbs ......
shell½Å±¾Ô´Âë: widget.sh #!/bin/bash
####################±äÁ¿¶¨Òå####################
shellroot=/var/shell
shdir=${shellroot}/sh
source_dir=${shellroot}/source
tmp_dir=${shellroot}/temp
target_dir=${shellroot}/target
js_dir=${shellroot}/js
##################³ ......