# 修改代码中的连接mysql 的配置文件 vim /var/www/html/lib/config.inc.php define('DB','pe6');//MYSQL数据库名 define('DH','10.0.0.121');//MYSQL主机名,不用改 define('DU','pe6_rw');//MYSQL数据库用户名 define('DP','Pe6_rw@123');//MYSQL数据库用户密码 define('DTH','x2_');//系统表前缀,不用改 # web 页面访问系统 10.0.0.121
应用二次开发
修改页面前端打造DBA专用的考试平台
php代码打包:
数据打包:
使用方法
将ks.com.tar 解压到 /var/www/html/目录,授予 777 权限;
将 xxx.sql 覆盖 pe6 库
修改php的配置中数据库的连接方式即可
批量修改
sed -n '/Copyright.*Copyright.*dba.toberoot.com.*\</p' ./data/html/core/tpls/app/index.html
sed -i 's!Copyright.*Copyright.*dba.toberoot.com.*\<!Mail: rgweiyaping@hotmail.com 备案号:沪ICP备2020026043号\<!g' ./data/html/core/tpls/app/index.html
whileread line; do sed -n '/Copyright.*Copyright.*dba.toberoot.com.*\</p'$line;echo$line; done < copy.txt
whileread line; do sed -n '/Copyright.*Copyright.*dba.toberoot.com.*\</p'$line;echo$line; done < 2.txt whileread line; do sed -i 's!Copyright.*Copyright.*dba.toberoot.com.*\<!Mail: rgweiyaping@hotmail.com 备案号:沪ICP备2020026043号\<!g'$line;echo$line; done < 2.txt whileread line; do sed -n '/Copyright.*dba.toberoot.com/p'$line;echo$line; done < copy.txt whileread line; do sed -i 's!Copyright.*dba.toberoot.com!Mail: rgweiyaping@hotmail.com 备案号:沪ICP备2020026043号!g'$line;echo$line; done < copy.txt whileread line; do sed -n '/沪ICP备2020026043号/p'$line;echo$line; done < copy.txt