【CentOS_7】安装nginx
1,下载
[root@VM_0_7_centos local]# wget http://nginx.org/download/nginx-1.14.2.tar.gz
---- ::-- http://nginx.org/download/nginx-1.14.2.tar.gz
Resolving nginx.org (nginx.org)... 95.211.80.227, 206.251.255.63, :::::3f, ...
Connecting to nginx.org (nginx.org)|95.211.80.227|:... connected.
HTTP request sent, awaiting response... OK
Length: (992K) [application/octet-stream]
Saving to: ‘nginx-1.14..tar.gz’ %[=================================================================================================>] ,, 584KB/s in .7s -- :: ( KB/s) - ‘nginx-1.14..tar.gz’ saved [/]
2,解压
[root@VM_0_7_centos local]# tar -zxvf nginx-1.14..tar.gz
3,设置
[root@VM_0_7_centos local]# cd nginx-1.14./
[root@VM_0_7_centos nginx-1.14.]# ll
total
drwxr-xr-x Dec : auto
-rw-r--r-- Dec : CHANGES
-rw-r--r-- Dec : CHANGES.ru
drwxr-xr-x Dec : conf
-rwxr-xr-x Dec : configure
drwxr-xr-x Dec : contrib
drwxr-xr-x Dec : html
-rw-r--r-- Dec : LICENSE
drwxr-xr-x Dec : man
-rw-r--r-- Dec : README
drwxr-xr-x Dec : src
[root@VM_0_7_centos nginx-1.14.]# pwd
/usr/local/nginx-1.14.
[root@VM_0_7_centos nginx-1.14.]# cd ..
[root@VM_0_7_centos local]# ll
total
drwxr-xr-x. root root Dec : bin
drwxr-xr-x. root root Apr etc
drwxr-xr-x. root root Apr games
drwxr-xr-x root root Dec : git
drwxr-xr-x. root root Dec : include
drwxr-xr-x. root root Dec : lib
drwxr-xr-x. root root Apr lib64
drwxr-xr-x. root root Apr libexec
drwxr-xr-x Dec : nginx-1.14.
-rw-r--r-- root root Dec : nginx-1.14..tar.gz
drwxr-xr-x root root Dec : python3
drwxr-xr-x root root Oct : qcloud
drwxr-xr-x. root root Apr sbin
drwxr-xr-x. root root Aug : share
drwxr-xr-x. root root Dec : src
srwxrwxrwx root root Oct : yd.socket.client
[root@VM_0_7_centos local]# mkdir nginx -p
[root@VM_0_7_centos local]# cd nginx-1.14./
[root@VM_0_7_centos nginx-1.14.]# ll
total
drwxr-xr-x Dec : auto
-rw-r--r-- Dec : CHANGES
-rw-r--r-- Dec : CHANGES.ru
drwxr-xr-x Dec : conf
-rwxr-xr-x Dec : configure
drwxr-xr-x Dec : contrib
drwxr-xr-x Dec : html
-rw-r--r-- Dec : LICENSE
drwxr-xr-x Dec : man
-rw-r--r-- Dec : README
drwxr-xr-x Dec : src
[root@VM_0_7_centos nginx-1.14.]# ./configure --prefix=/usr/local/nginx
4,编译安装
[root@VM_0_7_centos nginx-1.14.]# ll
total
drwxr-xr-x Dec : auto
-rw-r--r-- Dec : CHANGES
-rw-r--r-- Dec : CHANGES.ru
drwxr-xr-x Dec : conf
-rwxr-xr-x Dec : configure
drwxr-xr-x Dec : contrib
drwxr-xr-x Dec : html
-rw-r--r-- Dec : LICENSE
-rw-r--r-- root root Dec : Makefile
drwxr-xr-x Dec : man
drwxr-xr-x root root Dec : objs
-rw-r--r-- Dec : README
drwxr-xr-x Dec : src
[root@VM_0_7_centos nginx-1.14.]# make && make install
5,检查安装是否完成
[root@VM_0_7_centos nginx-1.14.]# pwd
/usr/local/nginx-1.14.
[root@VM_0_7_centos nginx-1.14.]# cd ..
[root@VM_0_7_centos local]# ll
total
drwxr-xr-x. root root Dec : bin
drwxr-xr-x. root root Apr etc
drwxr-xr-x. root root Apr games
drwxr-xr-x root root Dec : git
drwxr-xr-x. root root Dec : include
drwxr-xr-x. root root Dec : lib
drwxr-xr-x. root root Apr lib64
drwxr-xr-x. root root Apr libexec
drwxr-xr-x root root Dec : nginx
drwxr-xr-x Dec : nginx-1.14.
-rw-r--r-- root root Dec : nginx-1.14..tar.gz
drwxr-xr-x root root Dec : python3
drwxr-xr-x root root Oct : qcloud
drwxr-xr-x. root root Apr sbin
drwxr-xr-x. root root Aug : share
drwxr-xr-x. root root Dec : src
srwxrwxrwx root root Oct : yd.socket.client
[root@VM_0_7_centos local]# cd nginx
[root@VM_0_7_centos nginx]# ll
total
drwxr-xr-x root root Dec : conf
drwxr-xr-x root root Dec : html
drwxr-xr-x root root Dec : logs
drwxr-xr-x root root Dec : sbin
[root@VM_0_7_centos nginx]#
【CentOS_7】安装nginx的更多相关文章
- Linux(CentOS_7.6)安装Nginx
1.安装依赖 12 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 2.下载Nginx并解压 1234567 c ...
- CentOS_7下安装Nginx服务
安装make: yum -y install gcc automake autoconf libtool make make是一个命令工具,是一个解释makefile中指令的命令工具.它可以简化编译过 ...
- centos直接yum安装nginx
Ubuntu下安装nginx,直接apt-get install nginx就行了,很方便. 但是今天装了CentOS6.2,直接yum install nginx不行,要先处理下源,下面是安装完整流 ...
- 安装Nginx服务
Nginx最大特点: 静态小文件(1M),支持高并发,同时占用系统资源很少.3W并发,10个进程,内存150M. Nginx特点: 1.配置简单,灵活,轻量. 2.高并发(静态小文件),静态几万的并发 ...
- Linux下安装nginx
一直会使用nginx,也学习了好多nginx知识.也在本地安装过nginx,这次是第一次在正式的环境安装nginx,把这些记录下来总结经验. 一.安装环境 操作系统:CentOS release 6. ...
- centos系统编译安装nginx+php环境另加独立mysql教程
以前看过的安装nginx+php环境都带了mysql数据库了,这个是因为很多站长都是nginx+php+mysql都在同一台服务器了,那么今天我们是单独处理了,一个是nginx+php环境,然后mys ...
- Mac OS使用brew安装Nginx、MySQL、PHP-FPM的LAMP开发环境
准备工作 新版的 Mac OS 内置了Apache 和 PHP,我的系统版本是OS X 10.9.3,可以通过以下命令查看Apache和PHP的版本号: httpd -v Server version ...
- 手把手教你玩转nginx负载均衡(四)--源码安装nginx
引言: 在上一篇,我们已经装好了虚拟机,并且已经配置好了网络,那么今天我们就要开始安装nginx服务器了. 安装工具以及过程 安装gcc编译套件以及nginx依赖模块 yum -y install g ...
- Centos7 编译安装 Nginx PHP Mariadb Memcached 扩展 ZendOpcache扩展 (实测 笔记 Centos 7.3 + Mariadb 10.1.20 + Nginx 1.10.2 + PHP 7.1.0 + Laravel 5.3 )
环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7-x86_64-Minimal-1611.iso 安装步骤: 1.准备 1.0 查看硬 ...
- 安装nginx
[yum安装nginx] yum clean all(这步不执行会出现no more mirrors to try错误) cd /etc/yum.repos.d/ vi nginx.repo 填写 [ ...
随机推荐
- 【bzoj4543】[POI2014]Hotel加强版
题目 抄题解.jpg 发现原来的\(O(n^2)\)的换根\(dp\)好像行不通了呀 我们考虑非常牛逼的长链剖分 我们设\(f[x][j]\)表示在\(x\)的子树中距离\(x\)为\(j\)的点有多 ...
- Day2 Spring初识(二)
Bean的实例化 bean实例化方式有3种:默认构造.静态工厂.实例工厂 默认构造 调用无参构造, 属性+setter User.java package entity; public class U ...
- Odoo作为后端时如何返回数据给webapp、移动端app
转载请注明原文地址:https://www.cnblogs.com/cnodoo/p/9307315.html 使用jinja2渲染的页面,可以直接在调用template.render()时传递参数 ...
- 【原创】大叔经验分享(53)kudu报错unable to find SASL plugin: PLAIN
kudu安装后运行不正常,master中找不到任何tserver,查看tserver日志发现有很多报错: Failed to heartbeat to master:7051: Invalid arg ...
- python110道面试题
1.一行代码实现1--100之和 利用sum()函数求和 2.如何在一个函数内部修改全局变量 利用global 修改全局变量 3.列出5个python标准库 os:提供了不少与操作系统相关联的函数 s ...
- Qt在线/离线安装包下载网址和说明
截至到2018年3月27日,Qt最新版本的安装需要使用在线安装工具:qt-unified-windows-x86-3.0.2-online.exe,该安装个工具的下载地址为: http://downl ...
- [NOIp2016]蚯蚓 (队列)
#\(\color{red}{\mathcal{Description}}\) LInk 这道题是个\(zz\)题 #\(\color{red}{\mathcal{Solution}}\) 我们考虑如 ...
- Windows Mysql8 设置大小写敏感
windows系统无法改成 lower_case_table_names=0, 因为windows默认是1,就算改也只能改成2,以下截自 MySQL 8.0 Reference Manual 然后,当 ...
- 如何在Windows版本的VMware虚拟机上安装苹果系统
有时我想玩玩苹果系统,但自己有没有mac,只能在虚拟机上装一个苹果玩玩,但又由于某些原因虚拟机软件VMware不支持安装苹果系统,还在有大佬出于不明目的,在网上散布了适用于Windows版本的VMwa ...
- JQuery第一天——入门概述与选择器
一.什么是JQuery 一个流行的js库 核心理念:write less , do more 优势: 轻量级 强大的选择器 出色的 DOM 操作的封装 可靠的事件处理机制 完善的 Ajax 出色的浏 ...