A while ago is learning server deployment, but because the company just ran into several projects to catch up on the line, to help other groups to do the project, the deployment of the server was delayed. Yesterday re- installed on the CentOS6.6 Nginx, also just record the installation of some problems encountered.
Setup is a directory where our company installs the application server, including Nginx,tomcat, POSTGRESQL database, and so on, here I don't have much to pull.
1cd/usr/Setup2 RM./nginx-1.4.7-R-F3 TarZXVF nginx-1.4.7.Tar. GZ4 CP./headers- More-nginx-module-0.25.Tar. gz./nginx-1.4.75 CP./nginx_tcp_proxy_module-master.Tar. gz./nginx-1.4.76 CP./jvmroute.Tar. gz./nginx-1.4.77CD nginx-1.4.78 TarZXVF headers- More-nginx-module-0.25.Tar. GZ9 TarZXVF Jvmroute.Tar. GZTen TarZXVF Nginx_tcp_proxy_module-master.Tar. GZ One Patch-p0 <./jvmroute/jvm_route.Patch A Patch-p1 <./nginx_tcp_proxy_module-master/tcp.Patch - RM./headers- More-nginx-module-0.25.Tar. Gz-r-F - RM./jvmroute.Tar. Gz-r-F the./configure--add-module=./jvmroute/--add-module=./headers- More-nginx-module-0.25/ - Make - sudo Make Install
I was installingNginxwhen adding modules to it has been unsuccessful, Baidu said after the lack ofGCC, usingWhereis gcccommand to view, did not seeGCCthe installation path. After useYumcommand has been installedGCC, but the result is like the winter of the big Wuhan, although the sun is bright but still cold dead, I still did not install success. Then I wondered if there was a lack of command (because I wasn't there beforeLinuxThe process sequence of the jacket),sharing within the companyIPto find, really kung fu not negative people ah, share on the unexpectedly there will be2aNginxinstallation files, one of which I have installed now, and one is correct, inside about add module here is not the same command, I re-copy the file toLinuxinstalled on theNginx, this is a success!
Following the correct add module command:
./configure--with-pcre=/usr/setup/pcre-8.36 --with-pcre-jit--add-module=./jvmroute/--add-module=./ headers-more-nginx-module-0.25/ --add-module=./nginx_tcp_proxy_module-master
Well, it has been installed successfully, the next time to introduce the installation of other programs and configuration.
What the Z-shaped Linux is: install Nginx