湖濱散記部落格的樹心幽徑[login][主頁]
282:20131210insecta_httpd2.2.26_setup

(1)
[root@insecta lnx]# pwd
/root/lnx
[root@insecta lnx]# date
二 12月 10 09:44:00 CST 2013
[root@insecta lnx]# uname -a
Linux insecta.idv.tw 2.6.39.4 #3 SMP Sat May 4 11:58:58 CST 2013 i686 i686 i386 GNU/Linux
[root@insecta lnx]#


[root@insecta lnx]# df
檔案系統               1K-區段      已用     可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
                     234349200 140774772  81478124  64% /
/dev/sda1               194442     57908    126495  32% /boot
tmpfs                  1512968         0   1512968   0% /dev/shm
[root@insecta lnx]#


[root@insecta lnx]# httpd -v
Server version: Apache/2.2.9 (Unix)
Server built:   Jul 14 2008 15:29:50

(2)

[root@insecta lnx]# wget http://apache.stu.edu.tw//httpd/httpd-2.2.26.tar.gz

(3)
[root@insecta lnx]# tar xvzf httpd-2.2.26.tar.gz


(4)
[root@insecta httpd-2.2.26]#  ./configure --enable-so --enable-unique-id --prefix=/usr/local/apache2

:
config.status: executing default commands

(5)
[root@insecta httpd-2.2.26]# make

(6)
[root@insecta httpd-2.2.26]# make install

:

Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /usr/local/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /usr/local/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /usr/local/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /usr/local/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/root/lnx/httpd-2.2.26'
[root@insecta httpd-2.2.26]#

(7)
[root@insecta httpd-2.2.26]#  /usr/local/apache2/bin/httpd -v
Server version: Apache/2.2.26 (Unix)
Server built:   Dec 10 2013 09:51:17
[root@insecta httpd-2.2.26]#

(8)
[root@insecta httpd-2.2.26]# /usr/local/apache2/bin/apachectl stop
[root@insecta httpd-2.2.26]# /usr/local/apache2/bin/apachectl stop
httpd (no pid file) not running
[root@insecta httpd-2.2.26]# /usr/local/apache2/bin/apachectl start

(9)
[root@insecta httpd-2.2.26]# ps ax|grep httpd
18876 ?        Ss     0:00 /usr/local/apache2/bin/httpd -k start
19700 ?        S      0:13 /usr/local/apache2/bin/httpd -k start
19705 ?        S      0:09 /usr/local/apache2/bin/httpd -k start
19711 ?        S      0:14 /usr/local/apache2/bin/httpd -k start
19740 ?        S      0:12 /usr/local/apache2/bin/httpd -k start
20889 ?        S      0:03 /usr/local/apache2/bin/httpd -k start
20890 ?        S      0:06 /usr/local/apache2/bin/httpd -k start
20907 ?        S      0:02 /usr/local/apache2/bin/httpd -k start
21003 ?        S      0:01 /usr/local/apache2/bin/httpd -k start
21150 pts/0    S+     0:00 grep httpd
[root@insecta httpd-2.2.26]#



select id,article_id,topic,text from lt_articles_text where article_id =282; ok. update lt_articles set num_reads=num_reads +1 where id=282; ok.