Ali novice configure services and so on

1. Reset the security group in the cloud Ali's official website

 

 

 

 

 

 

 

 The first step in the configuration

2. The local installation FileZillaClient

  FIG Open Input

I have a linux server, nginx after the successful landing can be transferred to the archive folder file in the root directory of home

 3. Download crt ssh Editor

After downloading the successful landing, name: root,

 

 Decompression nginx

 

Configuring nginx

yum-y install gcc-c++

 yum-y install pcre-devel

yum-y install zlib-devel

yum-y install openssl openssl-devel

Install nginx

cd nginx-1.12.0 / into this directory  

Enter configuration ./configure

Enter compile make

appear

cc1: all warnings being treated as errors
objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/home/wzj/tools/nginx/nginx-1.11.3'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

 

 

Solution

Maakefile find the corresponding file, gcc parameters -Werror removed.

cd to objs / Makefile file open vim Makefile, -Werror the third row can be removed 

 

 In the implementation of make, if you have the following problems

 

 Solution

cd src in the current directory / os / unix / vim ngx_user.c comments following code, and then make solving

 

 Reference links

https://blog.csdn.net/u010889616/article/details/82867091

https://www.pianshen.com/article/1012727870/

Successful installation cd to install nginx directory 

 

 Then cd nginx /

cd sbin  

./nginx start nginx server

 

 Service starts successfully

 

Guess you like

Origin www.cnblogs.com/wei-dong/p/12593980.html