Nginx中间件web服务安装
安装pcre库 [root@lnmp01 ~]# rpm -qa pcre pcre-devel [root@lnmp01 ~]# yum install -y openssl openssl-devel [root@lnmp01 ~]# rpm -qa pcre pcre-devel pcre-devel-7.8-7.el6.x86_64 pcre-7.8-7.el6.x86_64编译安装nginx-1.6.3 [root@lnmp01 ~]# rpm -qa nginx [root@lnmp01 ~]# mkdir /home/lufeng/tools -p [root@lnmp01 ~]# cd /home/lufeng/tools/ [root@lnmp01 tools]# wget -q http://nginx.org/download/nginx-1.6.3.tar.gz [root@lnmp01 tools]# tar xf nginx-1.6.3.tar.gz [root@lnmp01 tools]# cd nginx-1.6.3[root@lnmp01 nginx-1.6.3]# useradd nginx -s /sbin/nologin -M[root@lnmp01 nginx-1.6.3]# ./configure --prefix=/application/nginx-1.6.3 --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module[root@lnmp01 nginx-1.6.3]# make [root@lnmp01 nginx-1.6.3]# make install [root@lnmp01 tools]# ln -s /application/nginx-1.6.3/ /application/nginx启动并检查nginx服务 [root@lnmp01 tools]# /application/nginx/sbin/nginx -t nginx: the configuration file /application/nginx-1.6.3/conf/nginx.conf syntax is ok nginx: configuration file /application/nginx-1.6.3/conf/nginx.conf test is successful[root@lnmp01 tools]# /application/nginx/sbin/nginx [root@lnmp01 tools]# netstat -lntup|grep nginx[root@lnmp01 tools]# wget 127.0.0.1 [root@lnmp01 tools]# curl 127.0.0.1基于多域名的虚拟主机配置 配置文件:[root@lnmp01 conf]# cat nginx.conf worker_processes 1; events {worker_connections 1024; } http {include mime.types;default_type application/octet-stream;sendfile on;keepalive_timeout 65; include extra/www.conf; include extra/blog.conf; include extra/bbs.conf; }[root@lnmp01 conf]# cat ./extra/www.conf server {listen 80;server_name www.lufeng.com;location / {root html/www;index index.html index.html;} } [root@lnmp01 conf]# cat ./extra/bbs.conf server {listen 80;server_name bbs.lufeng.com;location / {root html/bbs;index index.html index.html;} } [root@lnmp01 conf]# cat ./extra/blog.conf server {listen 80;server_name blog.lufeng.com;location / {root html/blog;index index.html index.html;} }
转载于:https://blog.51cto.com/bestlufeng/1910952
Nginx中间件web服务安装相关推荐
- nginx作为web服务以及nginx.conf详解
Nginx系列文章:http://www.cnblogs.com/f-ck-need-u/p/7576137.html 1.nginx简介 nginx是一个优秀的web服务程序.反向代理程序.它采用非 ...
- nginx作为web服务应用
Nginx 是一款轻量级的 Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,其特点是占有内存少,并发能力强.我的应用主要有3个,端口转发.反向代理和web服务.我的网络架构是 ...
- Linux web服务安装apache 思路 (源码编译,自己定义服务)
1. 首先卸载系统里本身自带的httpd服务 2. 然后下载源码包 解压缩到src 源码包程序目录 3. 进入源码包(解压缩后的) 4. 配置 5. 编译 6. 安装 7.做成系统启动服务 直接解决依 ...
- Linux进阶 | Docker部署nginx的web服务,VOLUME的使用详解,实现数据持久化!
创作不易,来了的客官点点关注,收藏,订阅一键三连❤
- 2、nginx常用配置----作为web服务端
目录 环境及目的 nginx配置文件特点和结构 1 特性 2 主配置文件结构 常用全局配置 1 main段 2 events段 web服务相关配置 1 server_namerootlisten 11 ...
- 玩转CVM:Web服务搭建
本教程将讲解如何依托腾讯云主机(CVM),搭建前沿的安全高性能Web服务.具体将包括:配置域名解析.SSL证书申请等Web服务的前置依赖,以及安装部署最新版Nginx Web服务器,并支持当前最新的T ...
- 普歌-腾讯云短信+使用node发送短信(3种方法API、SDK)、封装工具、搭建web服务、写接口、调用接口发送短信、时效性判断、验证验证码的正确性(下)
普歌-结合腾讯云短信服务+node搭建一个简单的发送短信web小项目 涉及技术: 腾讯云服务 后端服务:node+express 前端搭建:html+js 前言:本来这篇博客应该很早就发了,中间有一些 ...
- Windows Server 2008 R2之三十二:证书注册WEB服务(一)
由于证书注册WEB服务的部署方法,和CA与证书注册WEB服务是否安装在同一台计算机,以及安装过程中身份验证方式的选择有关, 以下CA与证书注册WEB服务安装在同一台计算机的设置过程. 实验环境: 所有 ...
- 通过 Lotus Domino Java 代理消费 Web 服务
Web 服务是一种允许两台或更多的计算机在网络中交互的系统设计.这种服务的主要优点是,它是在多台不同操作系统的计算机和应用服务器之间发送对象的标准解决方法.例如,我们的公司使用 Web 服务从一台运行 ...
最新文章
- BCH应无惧11月,奋力求发展
- 基于Javaweb实现超市管理系统
- java邮箱找回密码_Spring实现简单的邮箱找回密码功能
- minio扩展现有的分布式集群:扩大集群规模,增加磁盘数量
- SciPy--数值计算
- PHP中的中文截取乱码问题_gb2312_utf-8
- java struts1_struts1.x
- 背包问题 codevs2210 数字组合
- 作业,输入名字密码,按dict插入到list,非法字符显示*
- mysql乐观锁与事务_Mysql中的读锁,写锁,乐观锁及事务隔离级别和并发问题
- 按比例算出成绩 用c语言,Excel按指定比例生成学生总分,并迭代计算出各学科分数...
- “仿QQ局域网聊天软件”项目-常用编程技巧总结
- wincc7.4安装记录
- 无线路由器网络测试软件,如何简单快速测试家里无线路由器的网速和性能?
- 怎么给图片加边框线?图片加边框的方法
- UE4TTS文字转语音功能。
- Xshell 基础命令及其打包静态库和动态库命令
- js 实现简单区块链
- [转]熊绎:我看软件工程师的职业规划
- 通过js实现页面布局
热门文章
- SOA,RMI,RPC,SOAP,REST等名称的理解
- 使用NAT网关挂载本地物理机
- CodeForces Round #191 (327C) - Magic Five 等比数列求和的快速幂取模
- Command Prompt + Perl 脚本编写笔记
- mysql 插入数据会执行事务吗_在代码中,插入数据到数据库时,如果不使用事务,将会导致速度极慢...
- oracle job 及存储过程案例
- fragment中嵌套viewpager,vierpager中用fragment不显示数据
- Drawable和Bitmap的区别
- ArrayList 使用迭代抛出ConcurrentModificationException解决方法
- 一次数据分析的全过程