• nginx安装(1) – ttlsa教程系列之nginx


    1、必要软件准备

    • 安装pcre

    为了支持rewrite功能,我们需要安装pcre

    • 安装openssl

    需要ssl的支持,如果不需要ssl支持,请跳过这一步

    2、安装nginx

    执行如下命令:

    --with-http_stub_status_module:支持nginx状态查询
    --with-http_ssl_module:支持https
    --with-http_spdy_module:支持google的spdy,想了解请百度spdy,这个必须有ssl的支持
    --with-pcre:为了支持rewrite重写功能,必须制定pcre

    最后输出如下内容,表示configure OK了。
    .....

    3、启动、关闭、重置nginx

    启动:直接执行以下命令,nginx就启动了,不需要改任何配置文件,nginx配置多域名虚拟主机请参考后续文章.

    试试访问:我这边不贴图,直接使用curl命令来读取web信息

    关闭:

    重置:当你有修改配置文件的时候,只需要reload以下即可

    整个nginx的安装就到这里结束了。

    转载请注明出处:http://www.ttlsa.com/html/1548.html

  • 相关阅读:
    37.leetcode11_container_with_most_water
    36.leetcode8_string_to_integer
    34.leetcode15&5_time_limit_exceeded
    35.leetcode15_3Sum
    33.leetcode6_zigzag_conversion
    32.leetcode3_longest_substring_without_repeating_characters
    31.leetcode2_add_two_numbers
    29.leetcode172_factorial_trailing_zeroes
    30.leetcode171_excel_sheet_column_number
    [LeetCode] 43.Multiply Strings 字符串相乘
  • 原文地址:https://www.cnblogs.com/herd/p/5022064.html
Copyright © 2020-2023  润新知