JEECG Server + Linux + nginx installation

Source: Internet
Author: User

Installation location:/usr/local/nginx?

: http://nginx.org/en/download.html

--------------------------------------------------------------------------------------------------------------- ---------

Installation Prerequisites
Before installing Nginx, you need to ensure that the system has g++, GCC, Openssl-devel, Pcre-devel, and Zlib-devel software installed. Installation must be software:
[[email protected]/] #yum install gcc-c++
[[email protected]/] #yum-y install zlib zlib-devel OpenSSL openssl--devel pcre pcre-devel
Check the system installation Nginx:
[Email protected] local]# find-name Nginx
./nginx
./nginx/sbin/nginx
./nginx-1.2.6/objs/nginx
Uninstall the original Nginx

[email protected]/]# Yum remove Nginx


--------------------------------------------------------------------------------------------------------------- --------

Installation
Upload the installation package file to/usr/local to do the following:
[Email protected] nginx]# tar-zxv-f nginx-1.2.6.tar.gz
[[Email protected] nginx]# CD nginx-version number
[Email protected] nginx]#./configure
[[email protected] nginx]# make
[[email protected] nginx]# make install

In accordance with the above command, Nginx will be installed by default in the/usr/local/nginx directory

--------------------------------------------------------------------------------------------------------------- -------

Start
#方法1
[Email protected] nginx-1.2.6]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
#方法2
[Email protected] nginx-1.2.6]# Cd/usr/local/nginx/sbin

[Email protected] sbin]#./nginx

--------------------------------------------------------------------------------------------------------------- ---

Stop it
#查询nginx主进程号?
Ps-ef | grep nginx
#停止进程?
Kill-quit main process number?
#快速停止?
Kill-term main process number?
#强制停止?

Pkill-9 Nginx


--------------------------------------------------------------------------------------------------------------- -----------

Test
#测试端口?
Netstat–na|grep 80
#浏览器中测试?


Http://ip:80

JEECG Server + Linux + nginx installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.