1、系统安装
最小化安装
2、安装额外的软件包:
lynx-2.8.5-18.2
unixODBC-devel-2.2.11-1.RHEL4.1
unixODBC-2.2.11-1.RHEL4.1
flex-2.5.4a-33
bison-1.875c-2
gd-progs-2.0.28-5.4E
libjpeg-devel-6b-33
freetype-devel-2.1.9-6.el4
MySQL-devel-community-5.0.45-0.rhel4
MySQL-shared-community-5.0.45-0.rhel4
MySQL-server-community-5.0.45-0.rhel4
MySQL-client-community-5.0.45-0.rhel4
perl-DBI-1.40-8
zlib-devel-1.2.1.2-1.2
libpng-devel-1.2.7-3.el4_5.1
gd-devel-2.0.28-5.4E
gd-2.0.28-5.4E
glibc-devel-2.3.4-2.39
gcc-3.4.6-9
glibc-kernheaders-2.4-9.1.100.EL
glibc-headers-2.3.4-2.39
cpp-3.4.6-9
ZendOptimizer-3.3.0a-linux-glibc23
3、安装Apache-2.2.6
3.1 download:
http://www.apache.org/
3.2 编译安装:
# tar zxvf httpd-2.2.6.tar.gz
# cd httpd-2.2.6/
# ./configure \
–prefix=/usr/local/apache \
–enable-so \
–with-mpm=worker \
–enable-dav-fs \
–enable-dav-lock \
–enable-dav –enable-proxy \
–enable-proxy-http \
–enable-proxy-ajp \
–enable-rewrite \
–enable-cache \
–enable-disk-cache \
–enable-mem-cache \
–enable-proxy-balancer
…..
# make
# make install
4、安装PHP:
4.1 download:
http://www.php.net
4.2 解压缩:
# tar zxvf php-5.2.5.tar.gz
4.3 编译安装:
# cd php-5.2.5/
# ./configure \
–prefix=/usr/local/php \
–with-apxs2=/usr/local/apache/bin/apxs \
–enable-safe-mode \
–with-mysql \
–with-pdo-mysql \
–with-unixODBC=/usr \
–with-gd \
–with-jpeg-dir=/usr \
–with-png-dir=/usr - \
–without-pear \
–with-freetype-dir \
–enable-gd-native-ttf
……
# make
# make install
# cp php-ini-dest /usr/local/php/lib/php.ini
5、配置apache
参见下列文件(/usr/local/apache/conf/目录下)
httpd.conf
extra/*
362 cd /mnt/win/
363 ls
364 cd www
365 ls
366 cd ../
367 ls -l
368 cd www
369 ls -l
370 exit
371 ls
372 top
373 exit
374 exit
375 ls
376 ls -l
377 ls
378 cd /mnt/
379 ls
380 cd win/
381 ls
382 ls
383 cd www/
384 ls
385 cd bbs
386 ls
387 more index.php
388 ls
389 cd ..
390 ls
391 rpm -qa | grep zend
392 rpm -qa | grep optimi
393 ls
394 mysql
395 ps -ef
396 ps -ef| grep mysql
397 rpm -qa|grep mysql
398 ls
399 cd ..
400 ls
401 cd /etc/httpd/conf
402 ls
403 vi httpd.conf
404 ls
405 cd ..
406 ls
407 ls
408 cd /mnt/win/
409 ls
410 ls -lh
411 ls -l
412 cd www/
413 ls
414 ls -lh
415 du -sh
416 cd ..
417 ls
418 tar cvf www.20080117.tar www/
419 ls
420 ls -lh
421 scp www.20080117.tar 211.154.164.99:/usr/local/apache/htdocs/
422 ls
423 ls -l
424 ls
425 cd ..
426 ls
427 ls
428 cd /etc/httpd/
429 ls
430 ls
431 pwd
432 ls
433 cd conf
434 ls
435 vi httpd.conf
436 ps -ef
437 history |more
438 crontab -l
439 pwd
440 ls
441 vi httpd.conf
442 ls
443 cd /usr/local/
444 ls
445 cd Zend/
446 ls
447 cd bin
448 ls
449 cd ..
450 ls
451 cd etc/
452 ls
453 more php.ini
454 ls
455 cd ..
456 ls
457 cd ..
458 ls
459 cd apache/
460 ls
461 pwd
462 cd /etc/httpd/
463 ls
464 cd conf
465 ls
466 vi httpd.conf
467 mysql -u root -p
468 mysqldump -u root -p zb > zb.sql
469 ls
470 scp zb.sql 211.154.164.99:/root/
471 ls
472 ls
473 ps -ef
474 ps -fe
475 top
476 ls
477 ps -ef
478 ls
479 exit
480 top
481 exit
482 top
483 exit
484 top
485 history
1 ls
2 pwd
3 ls
4 cd ..
5 ls
6 pwd
7 ls
8 cd ..
9 ls
10 cd ..
11 ls
12 ls
13 cd ..
14 ls
15 cd ..
16 ls
17 df -h
18 cd /var/log/
19 ls
20 more lastlog
21 ls
22 more messages
23 ntsysv
24 ls
25 ps -ef
26 top
27 ps -ef
28 ls
29 exit
30 /usr/local/apache/bin/apachectl stop
31 pwd
32 ps -ef
33 ps -ef
34 ls
35 cd /etc/
36 ls
37 vi inittab
38 ls
39 cd selinux/
40 ls
41 vi config
42 ps -ef
43 pwd
44 iptables -L
45 ls
46 cd ..
47 ls
48 ps -ef
49 ulimit -a
50 pwd
51 cd /usr/local/apache/conf/extra/
52 ls
53 vi httpd-mpm.conf
54 ../../bin/apachectl -t
55 ../../bin/apachectl start
56 ps ef-
57 ps -ef
58 ps -ef
59 ps -ef
60 ls
61 vi httpd-mpm.conf
62 ../../bin/apachectl restart
63 ps -ef
64 ls
65 ls
66 vi httpd-mpm.conf
67 ls
68 cp httpd-mpm.conf httpd-mpm.conf.bak
69 vi httpd-mpm.conf
70 ls
71 ../../bin/apachectl restart
72 ps -ef
73 ls
74 ls
75 vi httpd-vhosts.conf
76 ls
77 vi httpd-dav.conf
78 ps -ef
79 ../../bin/apachectl restart
80 ps -ef
81 ps -ef
82 ps -ef
83 top
84 uptime
85 uptime
86 ls
87 ps -ef
88 service sendmail stop
89 chkconfig sendmail off
90 ls
91 cd ..
92 ls
93 vi httpd.conf
94 ls
95 cd extra/
96 ls
97 vi httpd-autoindex.conf
98 ls
99 vi httpd-default.conf
100 ls
101 vi httpd-info.conf
102 l
103 ../../bin/apachectl -h
104 ../../bin/apachectl status
105 ls
106 cd ..
107 ls
108 cd ..
109 ls
110 cd bin
111 ls
112 ./apachectl status
113 cd /usr/local/tswc_file/tech/disk/CentOS/RPMS/
114 rpm -ivh lynx-2.8.5-18.2.x86_64.rpm
115 /usr/local/apache/bin/apachectl status
116 /usr/local/apache/bin/apachectl status
117 ls
118 cd ..
119 ls
120 cd /usr/local/apache/conf/
121 ls
122 vi httpd.conf
123 /usr/local/apache/bin/apachectl restart
124 /usr/local/apache/bin/apachectl status
125 ls
126 cd extra/
127 ls
128 vi httpd-info.conf
129 /usr/local/apache/bin/apachectl status
130 /usr/local/apache/bin/apachectl restart
131 /usr/local/apache/bin/apachectl status
132 /usr/local/apache/bin/apachectl status |more
133 /usr/local/apache/bin/apachectl status |more
134 /usr/local/apache/bin/apachectl status |more
135 /usr/local/apache/bin/apachectl status |more
136 /usr/local/apache/bin/apachectl status |more
137 exit
138 /usr/local/apache/bin/apachectl stop
139 ps -ef
140 exit
141 mysql
142 cd /usr/local/
143 ls
144 cd php
145 ls
146 cd bin
147 ls
148 php
149 ./php
150 cd ../
151 ls
152 cd ../
153 cd apache/
154 ls
155 cd conf/
156 ls
157 cd httpd.conf
158 cd ../
159 ls
160 cd cgi-bin/
161 ls
162 vi test-cgi
163 sz
164 sr
165 exit
166 history
1 ls
2 pwd
3 ls
4 cd ..
5 ls
6 pwd
7 ls
8 cd ..
9 ls
10 cd ..
11 ls
12 ls
13 cd ..
14 ls
15 cd ..
16 ls
17 df -h
18 cd /var/log/
19 ls
20 more lastlog
21 ls
22 more messages
23 ntsysv
24 ls
25 ps -ef
26 top
27 ps -ef
28 ls
29 exit
30 /usr/local/apache/bin/apachectl stop
31 pwd
32 ps -ef
33 ps -ef
34 ls
35 cd /etc/
36 ls
37 vi inittab
38 ls
39 cd selinux/
40 ls
41 vi config
42 ps -ef
43 pwd
44 iptables -L
45 ls
46 cd ..
47 ls
48 ps -ef
49 ulimit -a
50 pwd
51 cd /usr/local/apache/conf/extra/
52 ls
53 vi httpd-mpm.conf
54 ../../bin/apachectl -t
55 ../../bin/apachectl start
56 ps ef-
57 ps -ef
58 ps -ef
59 ps -ef
60 ls
61 vi httpd-mpm.conf
62 ../../bin/apachectl restart
63 ps -ef
64 ls
65 ls
66 vi httpd-mpm.conf
67 ls
68 cp httpd-mpm.conf httpd-mpm.conf.bak
69 vi httpd-mpm.conf
70 ls
71 ../../bin/apachectl restart
72 ps -ef
73 ls
74 ls
75 vi httpd-vhosts.conf
76 ls
77 vi httpd-dav.conf
78 ps -ef
79 ../../bin/apachectl restart
80 ps -ef
81 ps -ef
82 ps -ef
83 top
84 uptime
85 uptime
86 ls
87 ps -ef
88 service sendmail stop
89 chkconfig sendmail off
90 ls
91 cd ..
92 ls
93 vi httpd.conf
94 ls
95 cd extra/
96 ls
97 vi httpd-autoindex.conf
98 ls
99 vi httpd-default.conf
100 ls
101 vi httpd-info.conf
102 l
103 ../../bin/apachectl -h
104 ../../bin/apachectl status
105 ls
106 cd ..
107 ls
108 cd ..
109 ls
110 cd bin
111 ls
112 ./apachectl status
113 cd /usr/local/tswc_file/tech/disk/CentOS/RPMS/
114 rpm -ivh lynx-2.8.5-18.2.x86_64.rpm
115 /usr/local/apache/bin/apachectl status
116 /usr/local/apache/bin/apachectl status
117 ls
118 cd ..
119 ls
120 cd /usr/local/apache/conf/
121 ls
122 vi httpd.conf
123 /usr/local/apache/bin/apachectl restart
124 /usr/local/apache/bin/apachectl status
125 ls
126 cd extra/
127 ls
128 vi httpd-info.conf
129 /usr/local/apache/bin/apachectl status
130 /usr/local/apache/bin/apachectl restart
131 /usr/local/apache/bin/apachectl status
132 /usr/local/apache/bin/apachectl status |more
133 /usr/local/apache/bin/apachectl status |more
134 /usr/local/apache/bin/apachectl status |more
135 /usr/local/apache/bin/apachectl status |more
136 /usr/local/apache/bin/apachectl status |more
137 exit
138 /usr/local/apache/bin/apachectl stop
139 ps -ef
140 exit
141 mysql
142 cd /usr/local/
143 ls
144 cd php
145 ls
146 cd bin
147 ls
148 php
149 ./php
150 cd ../
151 ls
152 cd ../
153 cd apache/
154 ls
155 cd conf/
156 ls
157 cd httpd.conf
158 cd ../
159 ls
160 cd cgi-bin/
161 ls
162 vi test-cgi
163 sz
164 sr
165 exit
166 history
167 top
168 ps -ef
169 exit
170 exit
171 ls
172 rm log.tar.gz
173 top
174 cd /usr/local/
175 ls
176 cd zend
177 cdzend
178 cd zend
179 ls
180 cd Z
181 cd Zend/
182 ls
183 cd bin
184 ls
185 exit
186 cd /usr/local/apache/
187 ls
188 cd conf/
189 tail
190 more httpd.conf
191 ls
192 tail httpd.conf
193 cd ../
194 ls
195 cd htdocs/
196 ls
197 cd www
198 ls
199 cd ../
200 ls
201 cd ../
202 ls
203 ls
204 exit
205 man mount
206 who
207 cd mnt
208 cd /mnt
209 ls
210 mhd
211 ls
212 mkdir tmp
213 ls
214 cd /usr/local/tswc_file/
215 ls
216 cd tech/
217 ls
218 mount -o loop CentOS-4.6-x86_64-binDVD.iso /mnt/tmp
219 cd /mnt/tmp
220 ls
221 umount -o loop /mnt/tmp/
222 umount /mnt/tmp/
223 ls
224 cd repodata/
225 ls
226 cd ../
227 ls
228 cd CentOS/
229 ls
230 cd RPMS/
231 LS
232 ls
233 ls | grep httpd
234 ls | grep mysqld
235 ls | grep mysql
236 ls | grep php
237 ls
238 q
239 man umount
240 umount -r /mnt/tmp/
241 umount /mnt/tmp/
242 umount -l
243 umount -l /mnt/tmp
244 umount -l /mnt/tmp
245 umount -l /mnt/tmp
246 cd /mnt/tmp
247 ls
248 exit
249 exit
250 top
251 ps -ef
252 /usr/local/apache/bin/apachectl top
253 /usr/local/apache/bin/apachectl start
254 top
255 ip addr
256 top
257 la
258 ls
259 ls
260 cd /usr/local/
261 ls
262 cd apache/
263 ls
264 cd bin
265 ls
266 ./ab -c 100000 -n 2000 http://211.154.164.99/
267 ./ab -c 20000 -n 2000 http://211.154.164.99/
268 ./ab -c 10000 -n 2000 http://211.154.164.99/
269 ./ab -c 10000 -n 1000 http://211.154.164.99/
270 ./ab -c 10000 -n 1000 http://211.154.164.99:80/
271 ./ab -c 10000 -n 1000 http://211.154.164.99:80/phpinfo.php
272 ./ab -c 10000 -n 200 http://211.154.164.99:80/phpinfo.php
273 ./ab -c 20000 -n 200 http://211.154.164.99:80/phpinfo.php
274 ./ab -c 3000 -n 200 http://211.154.164.99:80/phpinfo.php
275 ./ab -c 3000 -n 100 http://211.154.164.99:80/phpinfo.php
276 ./ab -n 100 http://211.154.164.99:80/phpinfo.php
277 ./ab -n 500 http://211.154.164.99:80/phpinfo.php
278 ./ab -n 20000 http://211.154.164.99:80/phpinfo.php
279 top
280 ls
281 ./apachectl status | more
282 ./apachectl status | more
283 ./apachectl status | more
284 ./apachectl status | more
285 ./apachectl status | more
286 ./apachectl status | more
287 ./apachectl status | more
288 ./apachectl status | more
289 ./apachectl status | more
290 ./apachectl status | more
291 ./apachectl status | more
292 ./apachectl status | more
293 ./apachectl status | more
294 ./apachectl status | more
295 ./apachectl status | more
296 ./apachectl status | more
297 ./apachectl status | more
298 ./apachectl status | more
299 ./apachectl status | more
300 ./apachectl status | more
301 ./apachectl status | more
302 ./apachectl status | more
303 ./apachectl status | more
304 ./apachectl status | more
305 ./apachectl status | more
306 ./apachectl status | more
307 ./apachectl status | more
308 ./apachectl status | more
309 ./apachectl status | more
310 top
311 ./apachectl status | more
312 ./apachectl status | more
313 ./apachectl status | more
314 ./apachectl status | more
315 ./apachectl status | more
316 ./apachectl status | more
317 ./apachectl status | more
318 ./apachectl status | more
319 ./apachectl status | more
320 ps -ef
321 ps -ef
322 ls
323 ip addr
324 ps -ef
325 exit
326 top
327 history