nginx install

  1. wget http://nginx.org/download/nginx-1.11.1.tar.gz
  2. tar xf nginx-1.11.1.tar.gz
  3. cd nginx-1.11.1
  4. 搭建yum环境,解决nginx需要的开发包
  5. 挂载光盘
  6. mount /dev/cdrom /mnt
  7. cd /etc/yum.repos.d/
  8. vim Centos_86x64.repo

[base]

name=Centos_86x64

baseurl=file:///mnt/

enabled=1

gpgcheck=0

9. yum groupinstall "Server Platform Development" "Development tools"

10. yum install pcre-devel

13. cd nginx-1.11.1

14. ./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf

15. make && make install

16. cd /usr/local/nginx/sbin

17. ./nginx

18. 访问192.168.1.10

时间: 2024-12-11 21:10:33

nginx install的相关文章

nginx install in centos

1.在nginx下载rpm包,如nginx-release-centos-6-0.el6.ngx.noarch.rpm ,并安装(可用yum直接安装): 注:rpm包只是提供一个nginx源. 2.使用sudo yum install nginx,正式安装nginx: 3.安装完成后,访问127.0.0.1,显示Welcome to nginx!网页. nginx install in centos,布布扣,bubuko.com

CentOS release 6.6 nginx install

/************************************************************************* * CentOS release 6.6 nginx install * 说明: * 在VPS上安装nginx,以供有些时候无聊使用. * * 2016-11-26 深圳 南山平山村 曾剑锋 ************************************************************************/ 一.参考文

[Linux][Nginx]Install

# 安装必要的组件 yum install -y gcc pcre* openssl-devel # 创建组和用户 groupadd nginx useradd -g nginx nginx -s /sbin/nologin # 文件存放目录 mkdir /etc/nginx mkdir /var/log/nginx mkdir /var/cache/nginx chown nginx:nginx /var/log/nginx chown nginx:nginx /var/cache/nginx

第七篇、Nginx Install On Mac

方式一: 在mac上安装nginx,依次安装对应的依赖 pcre ./configure --prefix=/usr/local/pcre-8.37 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre make && make install zlib ./configure  --prefix=/usr/local/zlib make && make install openssl./conf

Nginx Install 记录

一.安装编译工具及库文件 yum -y install gcc yum -y install gcc-c++ yum -y install zlib; yum -y install pcre-devel yum -y install openssl openssl-devel 二.下载安装包 wget -c https://nginx.org/download/nginx-1.10.3.tar.gz tar -zxvfnginx-1.10.3.tar.gz cd nginx-1.8.0 设置编译

centos nginx install openssl

1.查看是否已经安装 ssl 组件 [[email protected] wwwlogs]# cd /usr/local/nginx/sbin/ [[email protected] sbin]# ./nginx -V nginx version: nginx/1.0.15 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-52) TLS SNI support disabled configure arguments: --user=www --group=

docker nginx install

1. docker search nginx 2. docker pull nginx:latest 3. docker images 4. docker run --name nginx-test -p 8080:80 -d nginx 原文地址:https://www.cnblogs.com/sunnykwan/p/12233016.html

install Nginx iptables

install the dependent package yum install -y pcre pcre-devel yum install -y zlib zlib-devel get nginx package wget http://nginx.org/download/nginx.1.8.1.tar.gz create user id for nginx useradd -M -s /sbin/nologin nginx install nginx tar xvzf nginx.1.

Saltstack批量编译部署nginx(多模块)

最近一直在研究saltstack的同步文件和批量执行命令,随着架构的变大,批量部署的需求也变得明显起来了,我需要用一条命令就部署好nginx和tomcat,并且符合我所有的环境需求,可以直接投入生产环境使用,这就需要用到saltstack的批量安装部署功能了.这篇文章主要介绍nginx的批量部署,下篇讲解tomcat多实例的批量部署方法. 环境介绍: Centos 6.5 salt 2015.5.10 nginx 1.12.0 minion:test 1.修改master配置文件,修改后重启服务