摘要: 将地图 http 改为https 阅读全文
posted @ 2022-09-30 15:33 时光一寸灰 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、将入口文件移到根目录下 ① 将index.php 复制到根目录,然后修改为 // 定义应用目录 define('APP_PATH', __DIR__ . '/application/'); // 开启调试模式 define('APP_DEBUG', true); // 加载框架引导文件 requ 阅读全文
posted @ 2022-09-20 16:03 时光一寸灰 阅读(38) 评论(0) 推荐(0) 编辑
摘要: Warning: World-writable config file '/etc/mysql/my.cnf' is ignoredERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mys 阅读全文
posted @ 2021-06-28 12:25 时光一寸灰 阅读(317) 评论(1) 推荐(0) 编辑
摘要: truncate table 表名 阅读全文
posted @ 2021-05-27 17:16 时光一寸灰 阅读(115) 评论(0) 推荐(0) 编辑
摘要: function subText($text, $length){ if (mb_strlen($text, 'utf8') > $length) { return mb_substr($text, 0, $length, 'utf8') . '......'; } else { return $t 阅读全文
posted @ 2020-11-16 16:20 时光一寸灰 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 常用命令 进入到相应docker-compose目录下: docker-compose up -d 启动所有服务 docker-compose exec nginx bash 登录到nginx容器中 docker-compose down 删除所有nginx容器,镜像 docker-compose 阅读全文
posted @ 2020-11-09 18:05 时光一寸灰 阅读(3693) 评论(0) 推荐(0) 编辑
摘要: 查看某个数据库大小 USE information_schema;SELECT CONCAT(ROUND(SUM(data_length/1024/1024),2),'MB') AS DATA FROM TABLES WHERE table_schema='数据库名称'; 查看数据库某个表大小 se 阅读全文
posted @ 2020-08-13 17:00 时光一寸灰 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 【转载】crontab 详细用法 定时任务 使用crontab你可以在指定的时间执行一个shell脚本或者一系列Linux命令。例如系统管理员安排一个备份任务使其每天都运行 如何往 cron 中添加一个作业? # crontab –e0 5 * * * /root/bin/backup.sh 这将会 阅读全文
posted @ 2020-08-12 14:13 时光一寸灰 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 一、安装node.js 访问node.js官网https://nodejs.org/en/,下载最新版本node,根据提示安装。历史版本下载 https://nodejs.org/zh-cn/download/releases/ 安装成功之后,通过运行打开命令行程序的cmd.exe,输入命令 nmp 阅读全文
posted @ 2020-06-17 16:08 时光一寸灰 阅读(387) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <style> #d 阅读全文
posted @ 2020-06-17 11:06 时光一寸灰 阅读(158) 评论(0) 推荐(0) 编辑