1.通过官网下载apache、nginx源码包2.进入apache源码包所在目录,解压tar-xfhttpd-2.4.12.tar.gz3.cdhttpd-2.4.124.阅读README、INSTALL文件,里面有apache的简介、安装…
1、下载解压Nginx,为方便管理下载包一般将下载包放在指定目录下,即/usr/local/src/下。wgethttp://nginx.org/download/nginx-1.8.0.tar.gztarzxvfnginx-1.8.0.t…
截取nginx日志sed-n'/24\/Feb\/2017:11:00:00/,/24\/Feb\/2017:12:00:00/p'yunying_api.wanglibao.com.access.log>a.log#发现会有12点以…
今天又宅在家里一天,搭建一个新的wordpress博客,服务器用的是nginx。因为之前搭建过另外一个nginx+wordpress的博客,于是就直接用了之前nginx的配置,其中用到了下面的配置:if($host!='www.abc.me…
1.检查和安装依赖包yum-yinstallgccgcc-c++zlib-develpcre-developensslopenssl-devel2.编译和安装make&&makeinstall3.检查配置文件正确性/usr/…
http://wiki.nginx.org/HttpHeadersMoreModule#Versionheaders_moreWhenyouarebrowsingawebsite,youcancheckthetypeofwebserverr…
今天在配置nginx的时候出了一件很囧的事情,以前配置是这样的/usr/local/nginx/conf/-nginx.conf-my.conf然后在nginx.conf里加上includemy.conf今天我发现conf下面还有个vhos…
一、下载GeoIP数据库wgethttp://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gzwgethttp://geolite.maxmind.com/download/geoi…
配置访问日志:[root@localhost~]$cat/usr/local/nginx/conf/nginx.confhttp{log_formatmain'$remote_addr-$remote_user[$time_local]"$…
pacman-Snginx修改nginx配置文件vim/etc/nginx/nginx.conf1usernginxnginx;2worker_processes8;34#error_loglogs/error.log;5#error_lo…
在这里讲述部署的方法和常见的问题,并给出了在BAE,JAE,SAE等上面部署的实例。Django+nginx+Gunicorn/uwsgi部署方式,参见另一篇:Django部署(nginx)如果是自己的服务器(比如阿里云的或者自己搭建的虚拟…
环境:centos7下载nginx-1.19.1.tar.gz并解压。安装依赖yum-yinstallpcre-develyum-yinstallopensslopenssl-develyuminstall-yzlibyuminstall-…
#/usr/local/nginx/sbin/nginx-sstop#停止#/usr/local/nginx/sbin/nginx#启动
1.d:\xampp\php\php-cgi.exe-b127.0.0.1:9000-cd:\xampp\php\php.ini2.nginxconf配置如下:#usernobody;worker_processes1;#error_log…
thinkphp3.23在apache上可以轻松实现4个路由模式但是在nginx上就出现问题我们的环境是用lnmp包实现(地址:https://lnmp.org/)安装完成后,ta的lnmp的nginx是默认在/usr/local/ngin…