1摰鋆nginx
$ h4 J4 q' p% R1 { yum install nginx
( L5 |( l. y& c; w0 K..........0 P6 |7 L) f* a& Z0 O# L) q1 b; P
Running Transaction" m( m2 p+ p% } X7 ~
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
% E: c' _ ~ s6 G% c7 E6 `! Z3 l Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/3
: O* C& n# i, o- `* ?7 l, b Installing : nginx-1.0.15-11.el6.x86_64 3/35 ]+ I' v. Q) I, Q4 |2 o
Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
; D l4 Z5 F/ O) O" G Verifying : nginx-1.0.15-11.el6.x86_64 2/3. f* T3 h) C7 |2 H. `8 \
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
2 t" x7 V( M8 }( I" e* f+ u3 b+ o; i! b1 i) }- L b3 y, v F0 @* |- C$ D
Installed:- M- T+ a9 v9 T+ W6 g9 R7 k
nginx.x86_64 0:1.0.15-11.el6
6 G. _4 a5 N& n2 `! N, }Dependency Installed:
; x7 b. u8 Y t8 h Y5 T D! u GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el6
5 d) o+ a3 B7 N9 V( Z2 z" }Complete!& h6 ~3 p6 U/ \" g
9 a6 L# k+ Q- Q7 N/ H0 o& I. m5 \
閮剖/etc/nginx/nginx.conf
8 e7 ?2 X3 a3 J! {- g+ ~' L. l$ H9 ^. k
2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
# t2 \' X" i$ ^. w$ B閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error
* j% j$ ]. r* Y6 ]) l8 O9 D+ j" ^( V* W1 e) {
php-fpm service php-fpm start, V( d% z0 ^+ p, C/ f9 W- b: B
nginx service nginx start
' `2 ~! f0 i# Y/ W5 t$ _9 y/ A蝯嚗
: A- T) _" z- k( D7 A# K箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
" D6 r/ Q+ |9 M& ^閫瘙嚗
% d, h9 I( ]2 y' w% Y餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
. [ K/ t! k' A銝甈∪nginx service nginx start- c2 w& Y1 e0 i
蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
0 B+ w' U* C# \亦nginx configure /usr/sbin/nginx -V
* J$ Q% Z/ V! ^' B! I2 b1 j5 dnginx version: nginx/1.0.15
- y$ b5 _0 o3 G! s/ obuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)5 T8 D2 T5 N& Y" n
TLS SNI support enabled
& i# b% _$ c$ F ?; [) u2 nconfigure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E
9 ?, _6 W! Y! k4 h2 H
9 R& k, [ B& C/ `, z$ N6 S4 r* y$ E0 s: w/ p1 D
nginx service nginx start
5 y# ^* u/ \4 r. |6 |$ ^error :
. c" o7 S# {: U( w3 Gnginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
0 t) O( P) |4 M- u, Knginx: configuration file /etc/nginx/nginx.conf test failed2 V( P& S. g; a0 K* F6 g3 x
閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
) N: J3 ~; q$ g) j; g& y4 F1 O- d& M: uSELINUX = enforcing 寞 disabled
$ V2 q b/ S5 h5 f) A, _" K, J
& q2 f+ `3 B" L& }: a4 {
* y" V% K, p/ B, U" M
: h( a! o' p+ B7 W2 A
|
|