查询执行时间超长的进程SELECT * FROM information_schema.PROCESSLIST WHERE command != 'Sleep' ORDER BY time DESC列出要结束的进程select concat('kill ', id, ';') from information_schema.processlist where command != 'Sleep' and time > 100 order by time desc执行列出的命令kill 1;
文本内容的文件提供下载function downloadFile(fileName, content) { // 定义触发事件的DOM var aLink = document.createElement('a'); // 创建文件 var file = new File([content], fileName, { type: 'application/x-msexcel' } ); // 判定平台 var isMac = navigator.userAgent.indexOf('Mac OS') > -1; // 定义事件对象 var evt = document.createEvent(isMac ? "MouseEvents" : "HTMLEvents"); // 初始化事件 // evt.initEvent("click", false, fals
安装依赖yum install epel-release gcc openssl-devel libxml2-devel bzip2-devel libmcrypt-devel sqlite-devel oniguruma-devel libjpeg libjpeg-devel libpng libpng-devel libxslt libxslt-devel libtool libtool-devel autoconf libcurl libcurl-devel -y下载安装curl库wget https://curl.se/download/curl-7.74.0.tar.gz tar -xvf curl-7.74.0.tar.gz cd curl-7.74.0 ./configure make && make install安装PHPtar -xvf php-7.4.27.tar cd php-7.4.27 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/et
删除指定目录下N天以前的日志文件find /path -name "*.log" -type f -mtime +210 -exec rm -f {} \;
第一步:安装filemanager-webpack-pluginnpm install filemanager-webpack-plugin --save-dev第二步在vue.config.js中配置引入filemanager-webpack-pluginconst FileManagerPlugin = require('filemanager-webpack-plugin')修改configureWebpack项配置,增加打包操作配置方式一:configureWebpack: { plugins: [ new FileManagerPlugin({ events: { onEnd: { delete: ['./dist.zip'], archive: [{ source: './dist', destination: './dist.zip' }] } }