ICode9

精准搜索请尝试: 精确搜索
  • .user.ini的注意事项2022-08-27 18:03:47

            关于.user.ini的相关信息及基本利用可以参考一下文章: https://wooyun.js.org/drops/user.ini%E6%96%87%E4%BB%B6%E6%9E%84%E6%88%90%E7%9A%84PHP%E5%90%8E%E9%97%A8.html        我之所以写下这篇随笔,是因为在学习的过程中产生了一些误解及困惑,尽管已经解

  • thinkphp6服务器部署nginx下报HTTP ERROR 500错误2022-08-12 03:00:08

    原因:thinkphp6默认访问文件夹是public,但是要加载站点目录之外的文件 解决办法: 修改nginx配置文件fastcgi.conf,找到fastcgi_param PHP_ADMIN_VALUE这个参数,在这个参数的字符串中加入路径fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/home/wwwroot/"

  • php (nginx,apache) 常用配置2022-08-11 14:03:13

    前台html服务器,测试的时候不加缓存 server { listen 82; root D:/phpStudy/WWW/xxx; index index.html index.htm; location ~ .*\.(css|js|swf|htm|html)$ { add_header Cache-Control no-store; } } php项目 laravel , thinkphp , Ci 都用这个 server { listen

  • 21-物联网开发终端管理篇-安装PHP,测试GET,POST接口(.Windows系统)2022-08-05 02:01:23

    <p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/iot_terminal_management" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe></p>   安装VS运行库

  • LAMP单虚拟机部署网站2022-07-25 22:02:58

    LNMP环境架构部署 部署nginx支持fastcgi fastcgi_pass 请求转发 官网文档 https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_pass Syntax: fastcgi_pass address; Default: — Context: location, if in location Sets the address of a FastCGI s

  • Ngixn目录结构及运行原理2022-07-16 22:03:03

    通过tree插件查看Nginx的目录结构,没有的可以通过 yum install -y tree 找到自己的Nginx文件目录输入 [root@localhost ~]# tree /usr/local/nginx /usr/local/nginx ├── client_body_temp # POST 大文件暂存目录 ├── conf

  • Nginx常见问题2022-06-24 18:02:27

    Nginx常见问题 nginx多server优先级 # 优先级匹配顺序 1.首先选择所有的字符完全匹配 (精确匹配) 的server_name。 (完全匹配) 2.选择通配符在前面的server_name 3.选择通配符在后面的server_name 4.正则表达式的server_name、 5.所有匹配规则相同时,哪个配置文件listen...后面

  • PHP中SERVER_NAME获取的问题2022-06-06 22:31:27

    PHP代码 网站配置根目录下 info.php <?php echo "<pre>"; echo $_SERVER['SERVER_NAME']; host配置 127.0.0.1 www.my-search.com 127.0.0.1 www.my-play.com nginx配置 server { listen 80; server_name www.my-search.com www.my-

  • php apache 老项目 修改为nginx2022-05-27 19:01:38

    配置如下 主要修改如下 location / { try_files $uri $uri/ /index.php$uri?$query_string; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)

  • ubuntu+nginx+php环境搭建2022-05-13 15:33:31

    ubuntu+nginx+php环境搭建 就这么简单个事,百度出来的乱七八糟,各种方法混在一起。其实就几个命令的事,改个配置的事 apt install nginx  apt install php-fpm 安装完成后,编辑nginx配置文件 /etc/nginx/sites-available/default location ~ \.php$ { # include snipp

  • ngx-lua实现高级限流方式一2022-05-07 21:33:56

    基于POST请求体中的某个参数限流 背景 电商平台有活动,活动涉及优惠券的抢券,优惠券系统对大并发支持略差,为了保护整体系统平稳,因此在入口Nginx层对抢券接口做了一层限流。 完整实现如下: lua_shared_dict my_limit_req_store 100m; server { listen 80; server_name test.a

  • linux fast-cgi 与 php-fpm的区别2022-04-23 19:31:26

      CGI是为了保证web server传递过来的数据是标准格式的,方便CGI程序的编写者   fastcgi 也是协议,是对原来的cgi格式的补充及完整, 主要是用来提高cgi的性能,   php-fpm 与  spawn-fcgi  都是fastcgi的实现者       参考链接:https://godruoyi.com/posts/the-relationship-b

  • THINKPHP5 NGINX通用配置2022-04-05 18:02:30

    server { #配置监听端口 listen 80; listen [::]:80; #设置网站根目录作为变量root set $root /var/www/web; #设置网站根目录 root $root; #设置访问日志存放路径 #access_log logs/access.log; #设置错误日志存放路径 #error_log logs/error

  • nginx配置文件2022-04-05 12:00:07

    1.配置文件 user nginx; worker_processes auto; pid /run/nginx.pid; # 包含下方模块 include /usr/share/nginx/modules/*.conf; # 错误日志 error_log /yang/logs/nginx/error.log; events { worker_connections 1024; } # http协议 http { log_format main '$rem

  • 使用ansible的playbook脚本批量搭建部署zabbix6.02022-03-28 19:03:20

    部署环境: 一台control节点,两台node节点(均为stream8)  第一步,控制节点安装ansible(将之前的源删掉,全部替换成清华源,epel源里有ansible的安装包)  第二步,编辑ansible的配置文件和IP主机名解析(ansible_ssh_pass为远程被管理节点的root密码,在这里指定的话就不需要做免密登录)  第三

  • Nginx配置文件详解2022-03-19 10:35:25

    配置文件目录 /usr/local/nginx/ ├── conf # 这是Nginx所有的配置文件目录 │ ├── fastcgi.conf # fastcgi相关参数的配置文件 │ ├── fastcgi.conf.default # fastcgi默认的配

  • 解决Nginx的"File not Found"2022-03-07 01:00:59

    server {   server_name demo.com;   listen 80;   index index.php;   root "D:\www\pros";   location ~ ^(.*)\.php$ {    # 也可使用unix地址     fastcgi_pass localhost:9000;     fastcgi_index index.php;    # PHP-FPM读取的文件路径如果与Ng

  • nginx cache放到内存2022-03-06 02:02:18

    创建cache目录 mkdir -pv /var/cache/nginx/fastcgi_cache 修改/etc/fstab文件 tmpfs /var/cache/nginx/fastcgi_cache tmpfs defaults,size=200m,context=system_u:object_r:httpd_cache_t:s0 挂载文件 mount -t ramfs none /var/cache/nginx/fastcgi_cache  

  • nginx vue前后端分离配置示例2022-03-02 14:34:23

    vue + thinkphp vue为history路由模式,固定/api,/static前缀为php使用 server { listen 80; server_name localhost; set $static_root ''; # web目录 set $php_root ''; # php目录 root $static_root; index index.html index.htm index.php; l

  • ThinkAdmin 服务器 Nginx 配置2022-02-27 23:31:32

    下面的配置是 ThinkAdmin 框架的 Nginx 配置,thinkphp 项目可以通用。 server { listen 80; server_name xxx.com; root /data/php/xxx/public; index index.php index.html index.htm; location / { try_files $uri $uri/ @rules;

  • Linux下玩转nginx系列(二)——nginx配置文件说明2022-02-15 12:01:52

    nginx 文件结构 # main全局块 events { #events块 ... } http #http块 { ... #http全局块 server #server块 { ... #server全局块 location [PATTERN] #location块 { ... }

  • PHP-FPM和FastCGI2022-02-14 17:50:09

    作用 PHP-FPM(PHP FastCGI Process Manager)意:PHP FastCGI 进程管理器,用于管理PHP 进程池的软件,用于接受web服务器的请求。PHP-FPM提供了更好的PHP进程管理方式,可以有效控制内存和进程、可以平滑重载PHP配置。 (1). 为什么会出现php-fpm fpm的出现全部因为php-fastcgi出现。为了

  • fastCGI的配置2022-02-09 22:32:33

                                    上面的都是请求的详细信息,可以直接通过变量获取              

  • fastCGI安装2022-02-09 02:31:34

        安装过程还是那样,就是make的时候会报一个EOF未声明的一个错误,原因是没有添加头文件,我这个版本是有这个错误的,其他版本可能没有 只需要在报错的哪个文件中添加 EOF的头文件就可以了  

  • Nginx-FastCGI-"Primary script unknown" while reading response header from upstream,2022-02-02 10:32:53

    在对nginx添加fastCGI的支持后,然后进行php页面验证,居然报错File not found,查看日志显示 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, 一开始以为是权限问题,先上配置 location ~ \.php$ { root /data/nginx/ht

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有