MAC Upgrade OpenSSL Installation Tengine

Source: Internet
Author: User
Tags openssl openssl version

"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"

    1. Download tengine, here i download the latest 2.1.0

    2. Download Tengine Dependency package, Pcre zlib

    3. Unzip them, copy to the same folder, and of course the front openssl-1.0.2a

    4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.