zoukankan      html  css  js  c++  java
  • nginx安装-del

    1.检测是否安装 rpm -q xxx
    2. 安装nginx前,我们首先要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件,可通过如图所示命令进行检测
    3.安装
    yum install gcc-c++
    yum -y install make gcc gcc-c++ ncurses-devel
    yum install -y pcre-devel
    yum -y install zlib zlib-devel
    yum -y install openssl openssl--devel
    4.下载nginx http://nginx.org/en/download.html
    5.解压tar zxvf nginx-1.9.5.tar.gz
    6.安装nginx
        #cd nginx-1.4.1
        #./configure --prefix=/usr/local/nginx
        #make
        #make install
        
    7、启动服务
        #/usr/local/nginx/sbin/nginx  -c /usr/local/nginx/conf/nginx.conf
    8、停止服务
         #/usr/local/nginx/sbin/nginx -s stop
    9、查看端口占用情况
        #netstat -tunlp     

    10.查找文件路径
    whereis openssl

    11.多个文件打包
    tar czvf weshalong.tar.gz  weishalong.newchinalife.com.crt weishalong.newchinalife.com.csr  weishalong.newchinalife.com.key
        
        
    http://www.2cto.com/os/201212/176520.html

  • 相关阅读:
    k8s蓝绿
    nginx总结
    promethues监控 之 TCP连接数
    制作私有ssl证书
    redis命令
    zabbix主机自动发现
    Kubernetes各组件服务重启
    linxu下常用命令
    encodeURIComponent
    查询条件
  • 原文地址:https://www.cnblogs.com/FCWORLD/p/4866547.html
Copyright © 2011-2022 走看看