zoukankan      html  css  js  c++  java
  • nginx安装和测试 (已验证)

    进入:/usr/local/nginx 目录
    注意:为了保证各插件之间的版本兼容和稳定,建议先通过以下版本进行测试验证。

    一、下载版本
    下载nginx: wget http://nginx.org/download/nginx-1.8.0.tar.gz 下载openssl : wget http://www.openssl.org/source/openssl-fips-2.0.9.tar.gz 下载zlib : wget http://zlib.net/zlib-1.2.8.tar.gz (这个文件可能下载不到,可以自行到其它地方下载或者找我索要均可) 下载pcre : wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
    如果没有安装c++编译环境,还得安装,通过yum install gcc-c++完成安装 二、编译安装
    1)openssl : [root@localhost] tar zxvf openssl-fips-2.0.9.tar.gz [root@localhost] cd openssl-fips-2.0.9 [root@localhost] ./config && make && make install 2)pcre: [root@localhost] tar zxvf pcre-8.36.tar.gz [root@localhost] cd pcre-8.36 [root@localhost] ./configure && make && make install 3)zlib: [root@localhost]tar zxvf zlib-1.2.8.tar.gz [root@localhost] cd zlib-1.2.8 [root@localhost] ./configure && make && make install 4)最后安装nginx [root@localhost]tar zxvf nginx-1.8.0.tar.gz [root@localhost] cd nginx-1.8.0 [root@localhost] ./configure && make && make install

    =================================================================================================================================================

    三、 启动nginx
    进入
    /usr/local/nginx/sbin/ 目录。 通过 ./nginx 启动nginx服务;

    可以通过  kill 杀掉nginx的主进程 (master为主进程)。

    ps –ef|grep nginx
    
    //关闭进程
    kill -QUIT 主进程号(上面ps命令看到的带master字样的进程号)

    四、nginx验证方法

    浏览器访问如:http:// IP:80

    如果能正常显示nginx首页,则表示安装成功,测试关闭

     

    五、nginx.config配置文件配置详解(待续。。。)

    
    

        天津雍博科技有限责任公司

        欢迎大家访问www.yongbosoft.com ,崇尚技术,为您提供完美产品,优质服务!




  • 相关阅读:
    redis学习(二)-高级特性
    redis学习(一)-基础知识
    设计模式类型
    装饰者设计模式
    udp代理
    docker: unrecognized service
    centos6.x 编译安装zabbix_proxy 2.2.5
    写了一个shell,删除15天以上日志
    tempo 删除团队失败
    github批量删除organization下的private repo
  • 原文地址:https://www.cnblogs.com/monjeo/p/7570117.html
Copyright © 2011-2022 走看看