下载 nginx http://nginx.org/download/nginx-1.19.10.tar.gz
解压到 /usr/local
下载 pcre https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
解压到 /usr/local/nginx-1.19.10
下载 openssl https://www.openssl.org/source/openssl-1.1.1k.tar.gz
解压到 /usr/local/nginx-1.19.10
进入nginx根目录
$ cd …/nginx-1.19.10/
创建makefill
$ ./configure --with-pcre=./pcre-8.44/ --with-http_ssl_module --with-openssl=./openssl-1.1.1k/
安装
$ make && make install
修改.zshrc
$ vi ~/.zshrc
添加nginx启动路径
export PATH="/usr/local/nginx/sbin:$PATH"
修改host
$ vi /etc/hosts
添加本地运行域名
127.0.0.1 localhost.paypal.com