sudo apt-get install nginx
sudo apt-get install php-fpm
sudo nano /etc/nginx/sites-available/default
去掉location ~ \.php$等PHP相关注释,在index中增加index.phpsudo service ngxin reload
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
-------
相关错误解决Warning in ./libraries/sql.lib.php#613
count(): Parameter must be an array or an object that implements Countable
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
ctrl+w搜索count($analyzed_sql_results
将(count($analyzed_sql_results['select_expr'] == 1)
改为(count($analyzed_sql_results['select_expr']) == 1