- 博客(8)
- 收藏
- 关注
原创 thinkphp5 多语言
thinkphp5多语言(原理:根据不同的参数lang来加载不同的语言文件) 1.application 目录下 新建lang文件夹,并新建两个文件zh-cn.php和en-us.php 编辑代码 zh-cn.php <?php return [ 'test'=> "中文", 'name'=>'叶子', ]; en-us.php <?php re...
2020-01-16 14:04:11
402
原创 shell if脚本
shell脚本 根据接口返回结果 来执行另一个shell脚本 #!/bin/bash RESULT=$(curl https://www.aa.com/admin/index/index) #echo $RESULT; if [[ $RESULT = 'runing' ]]; then echo "runing~~"; elif [[ $RESULT = 'stop' ]] ; th...
2020-01-16 13:39:33
428
原创 swagger
1.打开tp下的composer.json修改 "require":{ "PHP": ">=5.4.0", "topthink/framework":"^5.0" }, //在require后增加zircote/swagger-php "require":{ "PHP": ">=5.4.0", "topthink/framework":"^5.0", ...
2020-01-13 17:36:36
303
原创 关于ssh: connect to host master port 22: Connection timed out问题的总结
scp远程复制另一个服务器的文件,连接超时。查看目标服务器安全组是否信任本服务器!
2019-04-04 13:17:38
1656
原创 mysql 每个5分钟取一条记录
原数据 筛选后得到的数据 SELECT * FROM `menu` where DATE_FORMAT(create_time,'%i')%5 = 0 group by DATE_FORMAT(create_time,'%Y-%m-%d %H:%i'); 隔几分钟可以随意更换
2018-11-06 11:37:57
4065
1
原创 Apache 配置HTTPS站点
声明:如果环境已经搭好,直接配3.5.6就可以了 1.安装Apache yum install httpd -y 2.启动服务 service httpd start 3.上传证书文件 过程省略 4.修改配置 cd /etc/httpd/conf.d/ ls README ssl.conf welcome.conf vim ssl.conf *注意如果没有ssl.co...
2018-11-01 17:56:59
508
原创 SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine
数据库挂了... 查看硬盘空间 df -h, find / -size +100M |xargs ls -lh 命令,将不重要的大文件删除(比如很久以前的日志文件) 希望对你有帮助
2018-10-09 16:56:20
8671
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅