透過 brew 安裝 nginx mariadb phpmyadmin 但 phpmyadmin 卻錯誤
首先透過 brew 安裝了 nginx mariadb php phpmyadmin 並確認運行
a @ nginx $ brew services list
Name Status User Plist
mariadb started a /Users/a/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
nginx started a /Users/a/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php started a /Users/a/Library/LaunchAgents/homebrew.mxcl.php.plist
也使用了 mariadb-secure-installation init mariadb 設定
db.conf
server {
listen 8001;
server_name localhost 127.0.0.1;
root /usr/local/share/phpmyadmin/;
location / {
root /usr/local/share/phpmyadmin/;
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
進入 phpmyadmin 也能夠看到介面
但出現錯誤:Token mismatch
我是不是哪裡少設置了?
我是安裝php8.0然後有去php.ini的 session.save_path = "/tmp"
啟用
也重新啟動nginx
但都會出現這個錯誤
直接透過 mysql -u root -p
登入是可以的
$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 3371
Server version: 8.0.23 Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]>
tmp使用率也不是滿的
$ df -h /tmp
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s5 234Gi 39Gi 178Gi 19% 966829 2448158531 0% /System/Volumes/Data
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论