Shell脚本实现#!/bin/bash
echo "开始发布"
cd /run-path
echo "同步代码"
git pull
echo "编译项目"
go build -o /build...
阅读全文...
Linux Crontab中传入当天日期
sudo -u www bash -c 'php test.php -d "$(date +%Y-%m-%d)"'
阅读全文...
阅读全文...
MySQL初级性能排查
查询执行时间超长的进程SELECT * FROM information_schema.PROCESSLIST WHERE command != 'Sleep' ORDER BY time DESC列出要结束的进程select concat('kill ...
阅读全文...
阅读全文...
Js 客户端生成文件并下载
文本内容的文件提供下载function downloadFile(fileName, content) {
// 定义触发事件的DOM
var aLink = document.createElement('a');
...
阅读全文...
阅读全文...