1、mysql 已改名为 mariadb
2、service 升级为 systemctl
3、mysql 设置初始密码 mysql_secure_installation
4、nginx配置
server{
listen 80;
server_name weiqing.isousou.net;
root /data/weiqing;
index index.html index.htm index.php;
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;
}
}
5、创建数据库语句
create database yourdb DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;