1. Decompress nginx-1.8.1.tar.gz
2. Unzip fastdfs-nginx-module-master.zip
3. Go to the nginx-1.8.1 directory
4. Perform
Then an error occurred.
Solution:
1.sudo apt-get update
2.sudo apt-get install libpcre3 libpcre3-dev
3.sudo apt-get install openssl libssl-dev
Install it again:
success:
But then execute sudo make install and wrong:
Solution:
turn up
CFLAGS = -pipe -O -W -Wall -Wpopinter-arith Wno-unused-parameter -Werror -g
Then remove -Werror
sudo make install again the installation is complete
Successful start
Reference Address: https://www.cnblogs.com/xianqingsong/p/10756451.html