【ubuntu】 nginx配置phpmyadmin

来源:互联网 发布:淘宝商家编码怎么写? 编辑:程序博客网 时间:2024/04/30 02:15


安装phpmyadmin

apt-get install phpmyadmin
配置 nginx.conf

server {        listen   8081;        server_name  192.168.1.105:8081;        root   /usr/share/phpmyadmin;     location / {            index  index.php index.html index.htm;        }     error_page   500 502 503 504  /50x.html;        location = /50x.html {            root   html;        }     location ~ \.php$ {        #    root           html;            fastcgi_pass   127.0.0.1:9000;            fastcgi_index  index.php;            fastcgi_param  SCRIPT_FILENAME  /usr/share/phpmyadmin$fastcgi_script_name;            include        fastcgi_params;       }}


重启nginx

service nginx restart
登录phpmyadmin 

192.168.1.105:8081  '浏览器中输入此网址

0 0
原创粉丝点击