Upgrade OpenSSL under Mac install Tengine

Source: Internet
Author: User
Tags openssl version

A few days ago to upgrade the system to 10.10.3, do not know how to card a B, plugged into the mobile hard drive WiFi connection (after reloading still), boot slowly unacceptable.

Going to the weekend, to a thorough plate reload. Sure enough, the original kind of smooth and back.

Start tossing, pretending Jdk,mysql,tomcat,idea ...

Was about to compile nginx when suddenly floated a share @ Sweet potato Fragrance, immediately think of the OSC, The OSC uses Tengine, well, the idea is to keep up with the big OSC .

Immediately, RM-RF Nginx began to toss Tengine, by the way the OpenSSL upgrade a


Upgrade your Mac's OpenSSL

1. Under the end of the OpenSSL version, see versions, vaguely remember is 0.9.8

2.sudo Rm-rf/usr/bin/openssl Delete your own OpenSSL

3. Download the latest OpenSSL, here i download is OpenSSL 1.0.2a.tar.gz

4. Unzip it and enter OPENSSL-1.0.2A

5../config--PREFIX=/USR/LOCAL/OPENSSL The specified installation directory will report the following warning

From the warning message, look what it is. 64-bit 32-bit ... You can press Ctrl-c abort within 5 seconds.

Hmm, huh. What do you mean, abort? I didn't learn this big word on the high school graduation, Baidu translation under Bai

Oh, that's what abortion means! Yes, no, abortion is unlucky.

Wait for execution to finish, what about this warning???

6. Locate the makefile 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

7.sudo make

8.sudo make Install

After waiting for a moment, the installation is complete

9.openssl Verison View Version

Gee, how to say can't find this command, the front configuration is installed under the/USR/LOCAL/OPENSSL, do not want to add it to the path

10.sudo ln-s/usr/local/openssl/bin/openssl/usr/bin/openssl after execution come to OpenSSL version no surprise.

At this point, the OpenSSL installation is complete


The following begins the installation of 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.



PS: The first time in the OSC to write a blog, with the UE mode, full screen after the full screen can not exit, frighten me to quickly smoke a cigarette pressure yajing

Seemingly @ sweet potato in Wuhan to make the source, Wuhan Black silk sister don't provoke sweet potatoes, he wore red open-source underwear, crotch has murderous. Wuhan's sister quality is still good

Upgrade OpenSSL under Mac install 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.