十月飞翔 十月飞翔
3年前
docker 启动nginx,指定映射目录,启动后nginx不退出
1.nginx退出问题:需要把/etc/nginx/nginx.conf里的user由nginx改成当前用户root。3.在/usr/share/nginx/html/index.html里保存了网页,有时候是空的,需要自己创建访问页面root@8afd7f43d8f0:/usr/share/nginx/htmlcat<index.html
Stella981 Stella981
4年前
Linux和Windows环境下安装Nginx
Nginx的安装windows环境下安装Nginx安装Nginx的下载地址如下:http://nginx.org/en/download.html(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fngi
Stella981 Stella981
4年前
CentOS7配置Nginx支持HTTPS访问
1.安装git和bc  yumyinstallgitbc2.安装Nginx  1.准备:    yuminstallygcccpcrepcredevelzlibzlibdevelopensslopenssldevel  2.下载:   
Wesley13 Wesley13
4年前
thinkphp3.2 在 nginx 下的配置
需要将ThinkPHP中的url\_mode设置为2server  {    listen80;    listen\::\:80;    server\_nameXXX.com;    indexindex.htmlindex.htmindex.phpdefa
Stella981 Stella981
4年前
Nginx在Windows平台的配置与使用
<divclass"output\_wrapper"id"output\_wrapper\_id"style"fontsize:16px;color:rgb(62,62,62);lineheight:1.6;wordspacing:0px;letterspacing:0px;fontfamily:'Helvet
Stella981 Stella981
4年前
Centos7安装nginx并配置SSL
一、Nginx的安装 (1)由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有g、gcc、openssldevel、pcredevel和zlibdevel所以执行如下命令安装:   $ yuminstallgccc    $ yumins
Stella981 Stella981
4年前
Nginx配置中Location的优先级
根据Nginx的官方文档,Location标签一共有四个修饰符,分别是:(1):表示完全匹配;(2)^~:匹配URI的前缀,并且后面的正则表达式不再匹配,如果一个URI同时满足两个规则的话,匹配最长的规则;(3)~:匹配正则表达式,大小写敏感;(4)~:匹配正则表达式,大小写不敏感;优先级:(1
Stella981 Stella981
4年前
Nginx+Tomat8负载后,利用Redis实现Tomcat8的session共享
网上相应的文章应该都介绍,这里只特别记录下笔者在实操的过程出现的问题。此文件只针对tomcat8版本,之前版本可略过。tomcat8中的context.xml文件修改,增加以下配置。Java代码 <ValveclassName"com.radiadesign.catalina.session.RedisSessionHandl
Stella981 Stella981
4年前
CentOS 5.5 下配置Nginx+mysql+php
LNMP配置根据网上的一些资料,综合总结了在Centos5.5下安装NMP的方式。同时通过修改配置文件达到解决框架的路由问题。1、安装前首先使用yum命令安装、升级所需的程序库(可选,但是安装过程中如果遇到缺少依赖包的话则必须得安装了)yumyinstallgccgcc\caut
十月飞翔 十月飞翔
3年前
docker 启动nginx,指定映射目录,启动后nginx不退出
1.nginx退出问题:需要把/etc/nginx/nginx.conf里的user由nginx改成当前用户root。3.在/usr/share/nginx/html/index.html里保存了网页,有时候是空的,需要自己创建访问页面root@8afd7f43d8f0:/usr/share/nginx/htmlcat<index.html