"Reprinted from 51179297"
"Upgrade your Mac's OpenSSL"
Terminal OpenSSL version View versions, should be 0.9.8
sudo rm-rf/usr/bin/openssl delete your own OpenSSL
Download the latest OpenSSL "https://www.openssl.org/source/openssl-1.0.2a.tar.gz", here i download the OpenSSL 1.0.2a.tar.gz
Unzip it, enter the OPENSSL-1.0.2A
./config--prefix=/usr/local/openssl The specified installation directory will report the following warning
Press CTRL + C to terminate within 5 seconds, and then, look below:
Find makefile This file in the OPENSSL-1.0.2A directory, open the search with the editor, replace the DARWIN-I386-CC with DARWIN64-X86_64-CC, save
sudo make
sudo make install
After a moment, the installation is complete
sudo ln-s/usr/local/openssl/bin/openssl/usr/bin/openssl after execution to OpenSSL version:
At this point, the OpenSSL installation is complete
"Install Tengine"
Download tengine, here i download the latest 2.1.0
Download Tengine Dependency package, Pcre zlib
Unzip them, copy to the same folder, and of course the front openssl-1.0.2a
Enter Tengine, ready to start compiling. Here you can modify src/core/nginx.h this file to customize the server name, I changed it to Niubi
5../configure--prefix=/users/dongchao/developmenttools/tengine--with-pcre=/users/dongchao/developmenttools/ tengine_install/pcre-8.36--with-zlib=/users/dongchao/developmenttools/tengine_install/zlib-1.2.8--with-openssl =/users/dongchao/developmenttools/tengine_install/openssl-1.0.2a--with-http_gzip_static_module--with-http_ Realip_module--with-http_stub_status_module--with-http_concat_module--with-http_footer_filter_module=shared-- With-http_limit_req_module=shared This is the module I installed, more please refer to the Tengine documentation
6.sudo make
The special, and the abortion again. There is also a warning to install the OpenSSL 5th step, open the Objs/makefile file, in about 1334 lines, replace the./config with the./configure DARWIN64-X86_64-CC
7.sudo make
Make a cigarette, burn it. ..
The smoke just finished
8.sudo make Install
At this point, the installation is complete
9.sudo/xxx/xxx/tengine/sbin/nginx Start Tengine input 127.0.0.1
See if the Server is a custom Niubi.
MAC Upgrade OpenSSL Installation Tengine