提前准备
部署本系统,我们需要提前准备的东西有:
- 先购买好域名以及服务器
- 将域名解析到服务器【查看域名解析教程】
- 到用户中心下载网页端源码
系统部署
1.上传解压源码
2.运行目录 /public
关闭放跨站攻击
![图片[1]-客营宝-系统部署教程-客营宝](https://oos.keyingbao.cn/2026/05/image-12.png)
3.部署SSL证书
4.配置伪静态
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-74.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
include fastcgi_params;
}
location ~ /\. {
deny all;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|webp|bmp|woff|woff2|ttf|eot)$ {
expires 30d;
access_log off;
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END




暂无评论内容