centos7 LNMP 配置备注
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、创建数据库语句
createdatabaseyourdbDEFAULTCHARACTERSETgbkCOLLATEgbk_chinese_ci;
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。