1摰鋆nginx
b) y" J0 w$ G yum install nginx
8 l* y! H" T8 ]' i+ y..........
. O" j4 T5 ]% }3 ]Running Transaction, W7 R& [9 \+ v) b+ w$ J/ O& }/ H# Y
Installing : GeoIP-1.5.1-5.el6.x86_64 1/3
; u( y) s# G7 e Installing : nginx-filesystem-1.0.15-11.el6.noarch 2/35 F* g. ?( N3 K4 F$ D8 w
Installing : nginx-1.0.15-11.el6.x86_64 3/3
" [/ v) P* K5 f1 |! y, v8 @ Verifying : nginx-filesystem-1.0.15-11.el6.noarch 1/3
7 y/ l; x; @2 z# ] Verifying : nginx-1.0.15-11.el6.x86_64 2/3( |0 \9 C. F) j( p) e$ R
Verifying : GeoIP-1.5.1-5.el6.x86_64 3/3
* j1 G0 |5 Y5 r M) `. n: N6 h2 @ M$ R& h' J! V
Installed:
# O( v7 m* T7 r; p6 S nginx.x86_64 0:1.0.15-11.el6
$ s! k- f' N/ r$ H/ V A" y/ w: ~Dependency Installed:
7 I: ]% s5 u+ j1 M5 t2 S GeoIP.x86_64 0:1.5.1-5.el6 nginx-filesystem.noarch 0:1.0.15-11.el62 i* z- ], s; @3 ^+ z; y: B
Complete!
) y) v0 A3 E. X" g4 R$ y- F2 p$ V0 n. [' i1 j' t' Z ~8 w
閮剖/etc/nginx/nginx.conf
7 ^' e/ ~ Z0 m3 m
/ Z( i5 c5 ?5 i1 }! e2摰鋆php-fpm嚗 http://www.av4u.info/thread-201-1-1.html
3 d* f; e' F: X, X9 U閮剖 /etc/php-fpm.d/www.conf user and group = nginx (default apache) ==> still error- U& {, \ r+ H; `
, f$ L) t3 q" t( a& Q$ Xphp-fpm service php-fpm start
: l2 n [. R4 {9 E/ P7 B' y0 \nginx service nginx start
) m F C! @, B1 t8 Y蝯嚗
, X ~6 x2 ^4 e箇頡rror :nginx嚗/usr/sbin/nginx: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
# p" p7 Z* n' m7 B閫瘙嚗
$ U6 r9 G# N# a* R& _! m* `$ R餘ibgd.so.2 其(locate libgd.so.2*)嚗蝯/usr/lib64/libgd.backup嚗隞卉p /usr/lib64/libgd.backup/libgd.so.2* /usr/lib64
8 Z o1 t% \/ M' i6 d* { J2 L銝甈∪nginx service nginx start
2 k! F9 [% R/ r% J5 g7 X& q* B4 k蝯嚗nginx: [emerg] unknown directive "upload_progress" in /etc/nginx/nginx.conf:46
" p9 s2 I2 W) q" L" j亦nginx configure /usr/sbin/nginx -V
' y z$ r/ `; H2 ?& \0 i+ Fnginx version: nginx/1.0.15& M& L8 j; U K1 p" W
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)5 i1 {% ?, O% Q7 w# a+ Z, T1 @/ n9 ~
TLS SNI support enabled$ X) {( W/ E5 I! Q% }7 g6 C
configure 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
- q! N4 E1 N2 x! [2 ]/ }. z9 [ - B% R: ]- [4 O( w
" m: ^. @2 _3 T1 w6 ?! Ynginx service nginx start
. k. B. e# W5 nerror :
0 S* T" U2 L" X4 Unginx: [emerg] open() "/etc/nginx/conf.d/db52av.52av.tv.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:40
/ Z0 f3 O- T. i9 w1 s& J' }nginx: configuration file /etc/nginx/nginx.conf test failed
- r U( o( q8 p$ @/ _& f閫瘙嚗撠/etc/sysconfig/selinux 抒 enforced 閮剜 disabled then reboot 撠勗臭誑鈭
$ d, a' E* D7 ]6 d+ O5 m7 Y$ Y. MSELINUX = enforcing 寞 disabled 5 r0 |, W: ]1 V1 f& B8 Y
0 |/ I7 Y; b9 g+ R) u
( i$ C! C, W W( {
4 f9 g0 T, w1 o# |9 E6 u
: m0 r7 [. Y" W; N# A |
|