美文网首页
宝塔Linux面板搭建开源考试系统phpems

宝塔Linux面板搭建开源考试系统phpems

作者: xlgao | 来源:发表于2023-08-22 15:08 被阅读0次

一、安装宝塔linux面板

1、宝塔linux面板官网:https://baota.yingxunszcm.cn/
2、安装宝塔linux面板,使用万能安装脚本

if [ -f /usr/bin/curl ];then curl -sSO download.cnnbt.net/install_panel.sh;else wget -O install_panel.sh download.cnnbt.net/install_panel.sh;fi;bash install_panel.sh ed8484bec

二、安装所需软件

1、各软件版本:nginx1.22+mysql8.0+php7.0


image.png

2、设置安装好的软件首页显示


image.png

三、下载phpems8.0

1、phpems8.0下载地址:https://phpems.net/
2、上传到宝塔面板kaoshi目录下

image.png

四、添加数据库并导入数据

1、添加数据库


image.png

2、导入数据

  • phpems解压后找到pe8.sql文件,点击数据库导入按钮,如图


    image.png
    image.png

五、修改配置文件lib/config.inc.php,填写数据库相关配置

image.png

六添加站点

image.png

七、点击首页nginx并启动

image.png

八、访问站点地址即可

九、常见问题处理

1、JS中限制了上传文件大小,分别在files/public/js/pe.app.js,pe.master.js,pe.mobile.js,打开后搜索 204800,如下图:


image.png

2、忘记登录地址


image.png

3、意外关机导致mysql无法启动

[root@localhost mysql]# rm -f /www/server/data/ib_logfile0
[root@localhost mysql]# rm -f /www/server/data/ib_logfile1
重启mysql服务

相关文章

网友评论

      本文标题:宝塔Linux面板搭建开源考试系统phpems

      本文链接:https://www.haomeiwen.com/subject/zzrumdtx.html