首页 > 2017年5月

Typecho在Tengine下pathinfo的问题(/index.php/xxx/)

打开网站的 .conf 文件 server 段 #error_page 404 /404.html; #error_page 502 /502.html; # 添加下面一段 location ~ [^/]\.php(/?.*)$ { fastcgi_split_path_info ^(.+?\.php)(/.+)$; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; } location ~ [^/]\.p...

MySQL允许远程访问

授权用户远程访问数据库 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; 授权用户远程访问数据库(带管理权限) GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'WITH GRANT OPTION; FLUSH PRIVILEGES; 取消授权 REVOKE ALL ON *.* FROM 'root'@'%'; FLUSH PRIVILEGES;

最新文章

最近回复