介绍:
1.将源码上传到宝塔面板,解压
访问域名即可完成安装。
2.使用管理员身份登陆建站系统
管理员初始账号admin密码123456
3.管理员进入后台方式
域名/manage
二
修改宝塔配置 [以Linux系统为例]
1:修改默认配置
/www/server/panel/class
找到panelSite.py
把
#创建自助建站系统文件
autosite = self.sitePath+’/autosite.php’
if not os.path.exists(autosite):
public.writeFile(autosite, public.readFile(‘data/autosite.php’))
此段代码代码放在
#创建默认文档
index = self.sitePath+’/index.html’
if not os.path.exists(index):
public.writeFile(index, public.readFile(‘data/defaultDoc.html’))
public.ExecShell(‘chm
最新PJ版宝塔自助建站实现24小时自助建站内含比较详细的文字教程
最新推荐文章于 2025-05-09 12:18:28 发布