随笔分类 - nginx
摘要:因为nginx.conf 日志地址写的是相对路径,找起来费点事~记录一下,网上的homebrew安装的的nginx路径跟我的又有所不同 zb@zbdeMacBook-Pro log % pwd /opt/homebrew/var/log
阅读全文
摘要:安装nginx,需要先安装gcc https://blog.csdn.net/li1325169021/article/details/115385274
阅读全文
摘要:一般nginx安装后,得到nginx安装目录 sbin文件夹里启动nginx /usr/local/nginx/sbin/nginx -s start 可以配置环境变量,来直接输入nginx来启动,停止,检测配置,重启 1.编辑用户级配置文件 vim ~/.bash_profile 2.添加配置信息
阅读全文
摘要:多数是权限问题 root /home/jd/code/dapingdist; 这里要从home >jd >code ,从外向内,一层层排查,是否有可读权限 1.权限配置不正确 这个是nginx出现403 forbidden最常见的原因。 为了保证文件能正确执行,nginx既需要文件的读权限,又需要文
阅读全文
摘要:cd nginx-1.19.9 ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module make 复制 nginx-1.19.9/objs/nginx 到 /usr/loc
阅读全文
摘要:netstat -anlp | grep :8080
阅读全文
摘要:方法一:nginx 配置 node项目也可如此编译,tips:是proxy_pass,并非proxy_path server { listen 80; #监听端口; server_name local.ping.com; #域名名称 location / { proxy_pass http://12
阅读全文
摘要:/usr/local/nginx/sbin/nginx -V 配置支持https 参考:https://www.cnblogs.com/yucongblog/p/11440703.html
阅读全文
摘要:location ^~ /admin.php { allow 218.93.***.**; deny all; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; include pa
阅读全文
摘要:xxxxx.conf 配置中 default_server ; listen 80 default_server reuseport;
阅读全文
摘要:问题描述 brew 部署的php开发环境,后台上传图片遇到nginx500 错误 一开始怀疑php对上传图片的错误 开启php错误日志,上传图片,没记录错误日志 1.php错误日志排查 ini_set("display_errors","On"); error_reporting(E_ALL); p
阅读全文
摘要:linux nginx 配置 server{ listen 80; server_name www.worldsipo.com; index index.html index.htm index.php; root /home/wwwroot/default/*****/public; #error
阅读全文
摘要:1.https 监听443端口 将listen 80 改为443 2. ssl 引入使用https时阿里云提供的秘钥 这个秘钥我们放入nginx/conf/cert 下面 然后引入 ssl on; ssl_certificate 文件位置/nginx/conf/cert/2424404_******
阅读全文
摘要:对于一台陌生的服务器或安装太久忘了位置,怎么才能简单快速的找到配置文件的位置呢? 要找出配置文件的位置,需要先找出nginx可执行文件的路径 , 这里有几种方法: ps -ef | grep nginx root 29514 1 0 Mar01 ? 00:00:00 nginx: master pr
阅读全文
摘要:今天使用PHPExce插件导不出数据,发现是数据量过大的原因,这里只做简单的处理。 1、导出超时处理:在执行页面添加:set_time_limit(0); 2、内存溢出:在执行页面添加:ini_set("memory_limit", "1024M"); 简单来说就是在执行页面添加了以下两行代码: s
阅读全文
摘要:带有sudo 权限执行就可以了
阅读全文
摘要:zb@zb-computer:/usr/local/nginx/conf/vhost$ ps -ef | grep php-fpmroot 10205 2359 0 15:07 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-fp
阅读全文
摘要:查看进程就是使用ps命令而已,只不顾ps的参数太多了。 使用php查询的话,必须要开启几个函数(可以执行外部程序的函数),参考官网:http://php.net/manual/zh/book.exec.php 下面是在php进程中查询某个服务创建的进程数,比如httpd,mysqld,sshd....... 至于为什么要减2,可以看下面的代码: 输出如下: ~/t...
阅读全文
摘要:server { listen 80; server_name local.light.com; index index.html index.htm index.php; root /home/wwwroot/default/******/Public; // !!!! 所在的文件需要有可执行权限, 一般是75...
阅读全文