2020-10-20-x
Xplorist Lv6

2020-10-20

todo-list

  • yy
  • matomo数据库迁移
  • 用户需求

record-list

  • 本地上安装一个Matomo,尝试迁移有数据迁移
  • Matomo配置
  1. 安装Nginx
  2. 安装PHP
  3. 安装MySQL
  4. Nginx集成PHP
  5. 安装Matomo
  6. 安装一个离线插件 CustomDimensions
  • 看来还是不能够偷懒,要经常做笔记,之前做Matomo的设置的时候就凭灵感,项目搞得飞快就懒得做笔记了,现在脑子里面空空如也,就知道是事情的严重性了
  • PHP,Nginx的配置不动,MySQL数据库迁移,只需要重新安装Matomo
  • 修改portal的后端程序的数据库配置,打包,然后发布

PHP安装-Windows

  1. 下载PHP.zip并解压
  2. 配置php.ini
    1
    2
    3
    4
    5
    6
    7
    // php.ini
    // 添加的配置
    extension_dir = "./"
    extension_dir = "./ext"
    cgi.fix_pathinfo=1
    extension=mysqli
    extension=mbstring

Nginx集成PHP-Windows

  1. 配置Nginx

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    ## nginx.conf

    ## 配置index.php
    location / {
    root html;
    index index.html index.htm index.php;
    }

    ## php配置
    location ~ \.php$ {
    root html;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    }
  2. 启动PHP

    1
    2
    3
    D:
    cd D:\_dev_env\php-7.4.11-Win32-vc15-x64
    php-cgi -b 127.0.0.1:9000 -c php.ini
  3. 启动Nginx
    双击nginx.exe

    1
    2
    3
    D:
    cd D:\_dev_env\nginx-1.18.0
    nginx -s reload
  4. 在Nginx的html文件夹下创建test.php

    1
    2
    3
    <?php

    phpinfo();
  5. 测试环境是否集成成功,访问http://localhost/test.php

home-record-list

  • manjaro-cat wallpaper
    manjaro-cat
1
2
// hexo 引用其他文章的链接 实例
{% post_link mark_down_file_name 'title' false %}
1
2
3
{% post_link 2020-10-19-x '通往文章的链接' %}

{% post_link hello-world '通往hello-world' %}

reference-site-list

Matomo

PHP

Manjaro wallpaper

Hexo

Windows Terminal

 评论