matomo 開源網站分析平臺
阿新 • • 發佈:2018-11-17
1、安裝PHP
https://www.jianshu.com/p/8d54a401ec06
yum remove php* yum -y install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php72w* --skip-broken systemctl start php-fpm.service
2、安裝mysql,並新建matomo資料庫
3、安裝nginx
https://www.jianshu.com/p/0626bbd975f3
yuminstall -y nginx [[email protected] conf.d]# cat /etc/nginx/conf.d/matomo.conf |grep -Ev "^%|^$" server { listen 80; server_name test.matomo.cn; root /opt/matomo; index index.php; access_log /var/log/nginx/access.log main; error_log /var/log/nginx/error.log warn; location / { try_files $uri/index.php$is_args$args; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
nginx -t
systemctl start nginx.service
systemctl enable nginx.service
瀏覽器輸入 test.matomo.cn
參考: https://matomo.org/what-is-matomo/
https://www.douban.com/note/691897375/