windows environment installation of Openresty data

Posted by heminfotech on Wed, 01 Apr 2020 23:58:25 +0200

◆ 1. Download the windows version of openresty:

http://openresty.org/cn/download.html


◆ 2. Unzip to the directory to be installed (for example: unzip to the root directory of disk D):

D:\openresty-1.13.6.1-win32>dir
 Driver D The volume in does not have a label.
 The serial number of the volume is A25B-3CEA

 D:\openresty-1.13.6.1-win32 Directory

2018/03/27  18:44    <DIR>          .
2018/03/27  18:44    <DIR>          ..
2018/03/27  18:44    <DIR>          client_body_temp
2017/11/13  13:50    <DIR>          conf
2017/11/13  13:50            22,924 COPYRIGHT
2018/03/27  18:44    <DIR>          fastcgi_temp
2017/11/13  13:50    <DIR>          html
2017/11/13  13:50    <DIR>          include
2017/11/13  13:50           117,932 libgcc_s_dw2-1.dll
2018/03/27  19:00    <DIR>          logs
2017/11/13  13:50    <DIR>          lua
2017/11/13  13:50         2,721,077 lua51.dll
2017/11/13  13:50           102,605 luajit.exe
2017/11/13  13:50    <DIR>          lualib
2017/11/13  13:50        22,553,342 nginx.exe
2017/11/13  13:50    <DIR>          pod
2018/03/27  18:44    <DIR>          proxy_temp
2017/11/13  13:50             8,690 README.txt
2017/11/13  13:50            19,535 resty
2017/11/13  13:50            19,953 resty.bat
2017/11/13  13:50            14,957 restydoc
2017/11/13  13:50             8,452 restydoc-index
2017/11/13  13:50             9,229 restydoc-index.bat
2017/11/13  13:50            16,003 restydoc.bat
2018/03/27  18:44    <DIR>          scgi_temp
2018/03/27  18:44    <DIR>          uwsgi_temp
              12 File     25,614,699 byte
              14 Directory 156,103,303,168 Available byte


◆ 3. Start nginx.exe:

Double click nginx.exe to run

◆ 4. Verification:

Mode 1: open the console to execute the command:

tasklist /fi "imagename eq nginx.exe"

Display results:

Image name PID session name session memory usage
========================= ======== ================ =========== ============
nginx.exe                    13388 Console                    1      7,256 K
nginx.exe                    13516 Console                    1      7,456 K


Method 2. Website:

http://127.0.0.1:8888/

Note: in this case, the port number is changed to 8888.

◆ problem handling:

1, bind() to 0.0.0.0:80 failed

Reason: port 80 is occupied

Processing scheme: modify the listening port in nginx.conf configuration file

http -> server -> listen

    server {
        listen       8888;
        server_name  localhost;

Topics: Nginx Session Windows