52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3771|敺: 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靘踵
7 t, v) c- G5 J1 E3 n- M& n7 ]& C7 d# U: G# P, Z3 p, q
嗉園蝞∠瑚誑銝頨怠瑁apache(銝芣apache)嚗嫣噶蝬脤蝛粹祉宏 嚗蝬脤蝬撣詨箇整甈銝頞喋憿% x1 J  u% I3 {" Z# {& {' W: a( n
摰鋆嚗: _$ H* H' U" O, |
1Apache撌脣鋆
1 [& c7 B( ~; x6 W& N$ j2摰鋆mod_fastcgi

$ `6 t' U+ A" q( y" D6 T7 v7 h
  1. cd /usr/tmp: X; S- h) x- s; a
  2. wget [url]http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz[/url]( N1 g  `* D* g5 ~4 m& d6 A# [
  3. tar -zxvf mod_fastcgi-current.tar.gz" q/ Z! v/ _2 G- F
  4. cd mod_fastcgi-2.4.6
    % [, I0 k( V6 a# p4 k1 R, A5 u
  5. cp Makefile.AP2 Makefile( U9 R8 o- t, F0 K! x! H
  6. make top_dir=/usr/lib64/httpd  #銝餅64bit
    & |+ X* r4 X  z8 q
  7. make install
銴鋆賭誨蝣
嗅瑁
make top_dir=/usr/lib64/httpd 箇暸航炊 : No rule to make target '/usr/lib64/httpd/build/special.mk' 嚗舐撩撠憟隞libtoolhttpd-develapr-develapr嚗潭$ Y8 j4 p. q& }1 b) G
  1. yum install libtool httpd-devel apr apr-devel
銴鋆賭誨蝣
瑁銝甈9 i. B4 a6 D% j4 K% K
  1. make top_dir=/usr/lib64/httpd
    8 t" x, L$ X6 h/ [3 F! }
  2. make install
銴鋆賭誨蝣
亙鋆 , 閰脫 /usr/lib64/httpd/modules/ 銝閬 mod_fastcgi.so  P: d/ ~! A( J4 r
3摰鋆php-fpm
! o0 Q# ^2 a1 ^; Y( B* z) v. Kphp-fpm , 湔亦 remi(http://www.pigo.idv.tw/archives/242) 摰鋆 , 靘憒 yum -enablerepo=remi install php-fpm      
. p5 P' S. [! \; S! m) [ 啣閮剖
( Z, E# K4 e2 h4 I1Apache寧滴orker璅∪(頛雿)嚗靽格/etc/sysconfig/httpd
' _6 a# Z# Q  n5 `2 L0 K5 F
  1. <font size="3">#HTTPD=/usr/sbin/httpd.worker    撠閮餉圾#踵</font>
銴鋆賭誨蝣
2婢pache頛叮od_fastcgi.so
' \+ y# M$ V$ P& C2 ~/etc/httpd/conf.d/銝啣銝瑼mod_fastcgi.conf嚗批捆嚗
- s$ v( c4 F% o- p) c& _" N
  1. LoadModule fastcgi_module modules/mod_fastcgi.so
銴鋆賭誨蝣
3/etc/httpd/conf.d/php.conf 銝摰閬思誑銝畾(亦∟芾憓)
8 }, \9 x5 L% ?9 R$ x' V
  1. <IfModule prefork.c>
    ! Q2 c, n/ S9 g; X8 x
  2. #寞銝 PID 璅∪蝯虫銝 PHP 雿璅∠* Y& v9 c/ m  {; P% q+ K! g+ y+ ^1 r
  3.   LoadModule php5_module modules/libphp5.so7 m2 O$ L; @3 u$ V2 W0 Z
  4. </IfModule>$ H; P" H1 p3 p1 s8 t2 t9 {. J& `
  5. <IfModule worker.c>
    0 p# K! J0 M. }6 L5 l# }
  6.   LoadModule php5_module modules/libphp5-zts.so
    ( o% W! Z7 ]) Z  K& S- V
  7. </IfModule>5 l* K0 N5 i3 z& i% w
  8. AddHandler php5-script .php  #隞亙舀銝摰閬 .php 蝯撠橘2 z2 c" `: U: l6 S
銴鋆賭誨蝣
4閮剖php-fpm% A0 f' ~% h& n% j% p2 w$ o$ Y
vi /etc/php-fpm.d/www.conf
  1. ;listen = 127.0.0.1:9000
    # b8 r9 I& B& Q; q. G4 p1 a" @
  2. listen = /var/run/php-fpm.sock) o5 z4 g  T. C. @1 `( y
  3. ; php-fpm 甇撣詨芸Yphp-fpm.sock
    5 X4 E- m) n" ~: ?! x4 V# o6 @+ T
銴鋆賭誨蝣
銝虫啣kevin.conf(畚opy www.conf)嚗銝虫耨寞:
7 e8 R3 E2 h0 {7 P0 o' B
  1. listen = /var/run/php-fpm_av4u.sock
    # V+ }$ `6 I( q+ |( F8 p9 C
  2. user = kevin8 G. b% q$ K& e5 S* \  u/ J3 S# D
  3. group = kevin
銴鋆賭誨蝣
php-fpm service php-fpm start- z9 m0 R. b" {
httpd      
service httpd reload
4 v9 Z) e7 S: k: k% s3 ?2 Q$ F; b
蝬皜祈岫潛曇銋銝璅嚗隞嗆甈銝頞單敶(kevinchmod  755)嚗航隞芣嚗瘙箏Apache寞nginx(瘥頛摰寞)嚗閰.................
  o4 K" x  N$ j2 ^- p: n) L+ Q

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 00:31 , Processed in 0.061323 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵