LNMP之 nginx 安装&启动

[[email protected] ~]# cd /usr/local/src/

[[email protected] src]# wget http://nginx.org/download/nginx-1.10.2.tar.gz

[[email protected] src]# tar zxvf nginx-1.10.2.tar.gz

[[email protected] src]# cd nginx-1.10.2/

[[email protected] nginx-1.10.2]# ./configure   --prefix=/usr/local/nginx   --with-http_realip_module   --with-http_sub_module  --with-http_gzip_static_module   --with-http_stub_status_module  --with-pcre

checking for PCRE library in /usr/include/pcre/ ... not found

编译完成后,提示 pcre 不存在

[[email protected] nginx-1.10.2]# yum install -y pcre-devel  #安装即可

再次重新配置即可。

[[email protected] nginx-1.10.2]# echo $?

0(每配置或编译要用此命令检查)

[[email protected] nginx]# make

[[email protected] nginx]# make install

[[email protected] nginx-1.10.2]# cd /usr/local/nginx/

[[email protected] nginx]# ls   # 查看到nginx 文件夹下生了四个目录

conf  html  logs  sbin

[[email protected] nginx]# ls sbin/nginx   #这是一个可执行文件

sbin/nginx

[[email protected] nginx]# /usr/local/nginx/sbin/nginx  #启动 nginx 

LNMP之 nginx 安装&启动

时间: 2024-08-08 01:18:25

LNMP之 nginx 安装&启动的相关文章

Linux学习总结(四十)lnmp之nginx安装 用户认证 域名重定向

1 nginx 介绍 Nginx官网 nginx.org,最新版1.13,最新稳定版1.12 Nginx应用场景:web服务.反向代理.负载均衡Nginx著名分支,淘宝基于Nginx开发的Tengine,使用上和Nginx一致,服务名,配置文件名都一样,和Nginx的最大区别在于Tenging增加了一些定制化模块,在安全限速方面表现突出,另外它支持对js,css合并Nginx核心+lua相关的组件和模块组成了一个支持lua的高性能web容器openresty 2 nginx 安装 cd /usr

Nginx安装启动过程报错libpcre.so.1 cannot open shared object file: No such file or directory

具体报错信息如下: nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 环境:因为生产环境不让使用root用户,但是安装linux 的gcc .precel.zlib等依赖库权限不够,因此准备使用root用户安装,安装完成之后将权限切换至oper用户.因为nginx又安装在home目录,各种映射问题都暴露出来了,安装

nginx安装启动

yum install nginx 启动 cd /usr/sbin/ ./nginx ---------------------------------- 命令参数 nginx -t 测试配置是否正确 nginx -s reload 加载最新配置 nginx -s stop 立即停止 nginx -s quit 优雅停止 nginx -s reopen 重新打开日志 原文地址:https://www.cnblogs.com/angdh/p/11192358.html

Ubuntu 14.04 安装LNMP(nginx/1.12.1+php7.1.9+mysql5.7.19)环境

这篇教程中,我们将讨论怎样在Ubuntu 14.04搭建LNMP环境 1 安装Nginx 首先我们要更新apt源 sudo add-apt-repository ppa:nginx/stable  sudo apt-get update 安装Nginx sudo apt-get install nginx Nginx安装完默认以经启动 启动Nginx:service nginx start 关闭Nginx:service nginx stop 重启Nginx:service nginx rest

LNMP编译安装之nginx安装--图文详解

LNMP编译安装之nginx安装--图文详解 1.前言 本次安装采用源码安装,主要资源包从官网下载,次要依赖则使用yum进行安装,本篇只涉及nginx的安装,不涉及nginx的配置,对应nginx如何访问php,本篇也不涉及.该教程纯属安装,不涉及任何重要知识点,老少皆宜. 2.安装步骤 nginx官网:http://nginx.org/en/download.html 2.1.下载nginx wget http://nginx.org/download/nginx-1.12.0.tar.gz

源码编译lnmp之简介与nginx安装

源码编译lnmp 系统环境:Centos 6.6 相关软件包: nginx-1.11.6.tar.gz mysql-boost-5.7.15.tar.gz php-5.6.28.tar.bz2 下载地址: nginx官网:http://nginx.org mysql官网:http://dev.mysql.com/downloads/mysql/ php官网:http://jp2.php.net/downloads.php 第一部分:安装nginx 一.安装nginx时必须先安装相应的编译工具 1

CentOS 6.5 yum安装配置lnmp服务器(Nginx+PHP+MySQL)

以下全部转载于  http://blog.csdn.net/lane_l/article/details/20235909 本人于今晚按照该文章使用centos 6.7 64bit安装成功,做个备份,就转过来了. --------------------------------------------------------------- 转载者语: 转载于:http://www.osyunwei.com/archives/2353.html 原文标题:CentOS 6.2yum安装配置lnmp

centos7安装Lnmp(Linux+Nginx+MySql+Php+phpMyAdmin+Apache)

centos7安装Lnmp(Linux+Nginx+MySql+Php)及Apache Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx是一个高性能的HTTP和反向代理服务器,Nginx 超越 Apache 的高性能和稳定性,使得国内使用 Nginx 作为 Web 服务器的网站也越来越多, 我们学习PHP,以及搭建我们自己的LNMP环境,不妨先在本机上尝试学习,下面我们一步一步来完成在CentOS7 下安装LNMP(Linux+Nginx+MySQL+PHP)及Apache. 查

centos6服务器YUM安装LNMP(LINUX+NGINX+MYSQL+PHP)

之前都用的lamp,这次配置一个lnmp来看看,试试Nginx是不是好用 关闭SELINUXvi /etc/selinux/config#SELINUX=enforcing #注释掉#SELINUXTYPE=targeted #注释掉SELINUX=disabled #增加 shutdown -r now #重启系统 安装ngnix 安装GCC编译器及相关工具yum -y install gcc gcc-c++ autoconf automake安装模块依赖的库yum -y install zl