
nginx
lumengabc
学习啊学习。。。
展开
-
周朋周鹏服务器升降配磁盘挂载
1 数据备份(MYSQL备份,程序备份)2 停止服务器实例3 升降配4 启动服务器5 开启相关服务,挂载磁盘等操作查看磁盘挂载情况: fdisk -l挂载磁盘命令:mount /dev/vdb1 /mnt6 测试运行是否正常。...原创 2021-07-27 19:30:34 · 139 阅读 · 0 评论 -
NGINX配置PHPINFO文件解决Dilicms后台无法index.php出现404
server { listen 80; server_name hl.a.com; location / { root /alidata/www/hl/x/; index index.htm index.html index.php; if (!-e $request_filename) { rewrite ^/(.原创 2017-03-07 16:18:28 · 1699 阅读 · 5 评论 -
Ubuntu下安装Nginx、Php-fpm、Php
安装Nginxsudo apt-get install nginx安装php及php常用插件sudo apt-get install php5-cgi php-apc php5-curl php5-gd php5-mysql php5-mcrypt php5-memcache php5-memcached安装Php-fpmsudo apt-get install php转载 2014-07-09 14:44:46 · 1411 阅读 · 0 评论 -
nginx多域名同IP同80端口配置
/etc/nginx/sites-enabled/etc/nginx/sites-enabled原创 2014-07-09 14:29:08 · 6899 阅读 · 0 评论 -
Nginx日志分析解决方案awstats
利用Nginx强大的日志功能可以做非常多的事情,比如点击统计、流量分析、在线人数统计以及其他高级数据挖掘等。现在简单讲解下日志分析的思路。 一,日志的切割周期性切割日志,比如每天分割一下日志,如果不注意这点日志文件很快就上G,给后续工作带来不便。分割日志很简单,就是把日志文件复制到别的地方,然后再通知让 Nginx 重新生成日志就可以了。 s转载 2014-05-21 15:24:24 · 2436 阅读 · 0 评论 -
Nginx 安装/配置/启动/关闭
一、前期准备安装Nginx,先要下载安装三个它依赖的软件,分别是:openssl, 下载地址:http://www.openssl.org/source/openssl-1.0.0.tar.gzpcre, 下载地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.02.tar.gzzlib,转载 2014-04-28 16:59:09 · 1039 阅读 · 0 评论 -
nginx配置访问地址
[root@localhost ~]# cd /usr/local/nginx/conf/[root@localhost conf]# lsfastcgi.conf fastcgi_params koi-utf mime.types nginx.conf scgi_params uwsgi_params原创 2014-04-28 15:52:02 · 6730 阅读 · 0 评论 -
php5.4配置Zend Guard Loader v3.3
首先在官网找到Zend Guard Loader安装包http://www.zend.com/en/products/guard/downloads然后centos原创 2014-04-28 17:36:49 · 6149 阅读 · 0 评论 -
nginx ob_flush缓存
[root@localhost ~]# cat /usr/local/nginx/conf/nginx.confuser www www;worker_processes 4;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;worker原创 2014-05-16 11:55:52 · 1657 阅读 · 0 评论 -
nginx重启、启动、关闭命令
[root@localhost ~]# pkill -9 nginx[root@localhost ~]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf[root@localhost ~]# 停止操作是通过向nginx进程发送信号(什么是信号请参阅linux文 章)来进行的步骤1:查询nginx主进程号原创 2014-04-02 14:21:55 · 4933 阅读 · 0 评论 -
php nginx超时出错
执行PHP操作大文件insert mysql数据库时,出现这个错误提示The page you are looking for is temporarily unavailable.Please try again later.set_time_limit(0)不限超时已经设置,并且PHP.INI中的错误提示已经打开,但还是出现上面的提示。于是,查看nginx的错误日志转载 2014-02-11 16:57:14 · 4070 阅读 · 0 评论 -
nginx配置多端口多域名访问
linux 配置nginx多端口多域名调了半年终于搞定,也不知道是什么问题,干!!1、先配置防火墙有2种方法,一种是下面这样直接命令行敲,还有是修改etc下面的文件,最后记住保存一下,重启下防火墙。开启防火墙:/sbin/iptables -I INPUT -p tcp --dport 1010 -j ACCEPT/sbin/iptables -I INPUT -p原创 2014-01-13 19:29:06 · 23054 阅读 · 2 评论 -
lnmp源码编译安装Linux(6.4)+Nginx(1.4.1)+Mysql(5.6.12)+Php(5.5.0)
内核2.6.32,系统为CentOS6.4的64为系统,ip地址为192.168.2.103。如下:1234567[root@ASANGE ~]# uname -r2.6.32-358.el6.x86_64[root@ASANGE ~]# cat /etc/redha转载 2014-01-14 14:03:18 · 1835 阅读 · 0 评论 -
Nginx 安装/配置/启动/关闭-默认安装到/usr/local/nginx/
打开配置文件,看到有这一行“include vhosts/*.conf;他这里又包含了vhosts文件夹下的所有配置文件。于是多域名配置就可以在这个文件夹里任意添加了。[root@server81 conf]# vi nginx.conf#user nobody;worker_processes 1;#error_log logs/error.log;转载 2014-01-03 16:55:57 · 15773 阅读 · 3 评论 -
nginx的client_max_body_size解决nginx+php上传大文件的问题
通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题: 用nginx来做webserver的时,上传大文件时需要特别注意client_max_body_size这个参数,否则会中断在nginx的请求中,在php中是无法记录到访问的. 一般上传大文件流程: 首先修改php.ini文件: 参数 设置 说明 file_uploads on转载 2013-12-11 17:12:47 · 22864 阅读 · 0 评论 -
nginx查看配置文件nginx.conf路径
当你执行 nginx -t 得时候,nginx会去测试你得配置文件得语法,并告诉你配置文件是否写得正确,同时也告诉了你配置文件得路径:# nginx -tnginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is oknginx: configuration file /usr/local/etc/nginx/ng原创 2013-12-09 10:59:39 · 10336 阅读 · 0 评论