52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3848|敺: 0
銝銝銝駁 銝銝銝駁

[蝬脤隡箸沘 Apache + mod_fastcgi + php-fpm(銝頨怠雿輻刻臬瑁Apache)

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-1-10 07:37:43 | 芰閰脖 撣 |摨閬 |梯璅∪
雿輻私hp-fpm銝餉桃舐箔臭誑冽Linux撣唾(靘憒kevin)餃Apache憒甇乙pache甈蝑(equivalant)嶔evin甈憒甇蝬脩寧桅(靘憒 /home/kevin/),芾kevin甈apache靘踵
' z- x$ Z% B: u) M: T/ B) h8 E- A. m" l% }( L4 l4 n
嗉園蝞∠瑚誑銝頨怠瑁apache(銝芣apache)嚗嫣噶蝬脤蝛粹祉宏 嚗蝬脤蝬撣詨箇整甈銝頞喋憿
" h- l# G0 a8 c; s  ]% w9 A摰鋆嚗9 G+ b+ y! M2 |3 a( Y0 W
1Apache撌脣鋆3 }' u+ j$ J( }
2摰鋆mod_fastcgi
9 G1 N" c% {/ }2 m
  1. cd /usr/tmp' i; g# e# V; d
  2. wget [url]http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz[/url]
    / ~; G1 C# c% d. S
  3. tar -zxvf mod_fastcgi-current.tar.gz* @: d2 x: E! P+ w% c
  4. cd mod_fastcgi-2.4.62 w6 v# v! z6 N, u9 e* {- K
  5. cp Makefile.AP2 Makefile  N' `! B0 t% ^7 A- v
  6. make top_dir=/usr/lib64/httpd  #銝餅64bit2 \: D) N9 \# w6 {: ]0 k+ Q
  7. make install
銴鋆賭誨蝣
嗅瑁
make top_dir=/usr/lib64/httpd 箇暸航炊 : No rule to make target '/usr/lib64/httpd/build/special.mk' 嚗舐撩撠憟隞libtoolhttpd-develapr-develapr嚗潭/ n. b8 C( j4 a* d  m
  1. yum install libtool httpd-devel apr apr-devel
銴鋆賭誨蝣
瑁銝甈
0 S4 {( o) E! l; N2 q( K  j+ H
  1. make top_dir=/usr/lib64/httpd8 n5 l  k" p" v5 o, j
  2. make install
銴鋆賭誨蝣
亙鋆 , 閰脫 /usr/lib64/httpd/modules/ 銝閬 mod_fastcgi.so* a( b' f2 y/ H- V
3摰鋆php-fpm
- J$ U' l* h- M! L) |% {php-fpm , 湔亦 remi(http://www.pigo.idv.tw/archives/242) 摰鋆 , 靘憒 yum -enablerepo=remi install php-fpm      . G: p4 o8 M/ ]. i! S* P
啣閮剖$ Y4 R- q# G% |
1Apache寧滴orker璅∪(頛雿)嚗靽格/etc/sysconfig/httpd
* p: k* i% _' m2 L; R
  1. <font size="3">#HTTPD=/usr/sbin/httpd.worker    撠閮餉圾#踵</font>
銴鋆賭誨蝣
2婢pache頛叮od_fastcgi.so
. C4 _$ R0 O3 @4 l( C6 h' x  ~% B2 E/etc/httpd/conf.d/銝啣銝瑼mod_fastcgi.conf嚗批捆嚗
* h9 [( w6 j; W; J
  1. LoadModule fastcgi_module modules/mod_fastcgi.so
銴鋆賭誨蝣
3/etc/httpd/conf.d/php.conf 銝摰閬思誑銝畾(亦∟芾憓)/ f, F5 \; y! E) O7 z6 Q6 G
  1. <IfModule prefork.c>7 z. ?& l0 W" `+ B7 V/ S- z
  2. #寞銝 PID 璅∪蝯虫銝 PHP 雿璅∠7 Q% Z1 K, S9 e2 Z5 i# L
  3.   LoadModule php5_module modules/libphp5.so0 A" u( A9 W) z4 Z1 ~5 @
  4. </IfModule>3 [, l" E- O1 ~0 v. Y
  5. <IfModule worker.c>
    9 a$ X% n5 X. t7 ^; o: o6 ]
  6.   LoadModule php5_module modules/libphp5-zts.so
    4 r( `9 l. k& r( A3 I5 W* h& S
  7. </IfModule>* P  a* O% q5 Z; S# Z3 p% Q
  8. AddHandler php5-script .php  #隞亙舀銝摰閬 .php 蝯撠橘) {  J2 h0 y2 \
銴鋆賭誨蝣
4閮剖php-fpm
) {. Z! M; m" N" R" }9 Hvi /etc/php-fpm.d/www.conf
  1. ;listen = 127.0.0.1:9000
    $ _* C0 F  I, F2 @# ^/ G' N
  2. listen = /var/run/php-fpm.sock
    + o3 j/ s; ?8 J' X; u# y, q
  3. ; php-fpm 甇撣詨芸Yphp-fpm.sock# E! w/ i0 ?6 ?$ Q: X. V
銴鋆賭誨蝣
銝虫啣kevin.conf(畚opy www.conf)嚗銝虫耨寞:$ l3 _2 Y; @5 M3 U3 G% j% o/ l1 F! D* C
  1. listen = /var/run/php-fpm_av4u.sock
    ; P7 ~4 b. i5 @  y; p; ~3 x  j
  2. user = kevin
    - f/ ]* f4 c2 N; e
  3. group = kevin
銴鋆賭誨蝣
php-fpm service php-fpm start( U! ]2 ~$ q( e% Z! d) _
httpd      
service httpd reload
  l8 h" D7 h$ D9 M9 b8 G& l6 k. ~, W6 U
蝬皜祈岫潛曇銋銝璅嚗隞嗆甈銝頞單敶(kevinchmod  755)嚗航隞芣嚗瘙箏Apache寞nginx(瘥頛摰寞)嚗閰.................) l% M2 h/ A  B0 `

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-22 18:10 , Processed in 0.063532 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵