- Linux kill包含关键字所有进程
ps aux|grep keywords |awk '{print $2}'|xargs kill -9
- top命令
- c 切换显示命令名称和完整命令行
- l 切换显示平均负载和启动时间信息
- m 切换显示内存信息
- t 切换显示进程和CPU状态信息
| <?php | |
| class CryptHelper | |
| { | |
| const CIPHER_ALGO = 'AES-256-CBC'; | |
| /** | |
| * 加密 | |
| * @param $plaintext | |
| * @param $password |
ps aux|grep keywords |awk '{print $2}'|xargs kill -9
| <?php | |
| /** | |
| * convert or add url proto | |
| * @param [type] $url [description] | |
| * @param boolean $follow [description] | |
| * @return [type] [description] | |
| */ | |
| function convertUrlProto($url, $follow = true) | |
| { |
| #!/bin/bash | |
| # | |
| # 作者: Jsser <jsser AT qq.com> | |
| # | |
| # 日期:2019-09-09 | |
| # | |
| # 说明:基于OneinStack的一键反代环境安装脚本 | |
| # | |
| # 支持系统:CentOS/RedHat 6+ Debian 8+ and Ubuntu 14+ | |
| # |
| #!/bin/bash | |
| # | |
| # 作者: Jsser <jsser AT qq.com> | |
| # | |
| # 日期:2019-12-01 | |
| # | |
| # 说明:基于OneinStack的一键反代环境安装脚本 | |
| # | |
| # 支持系统:CentOS/RedHat 6+ Debian 8+ and Ubuntu 14+ | |
| # |
| #!/bin/bash | |
| # filename: archive_ssl.sh | |
| # 压缩文件密码 | |
| PASSWORD="zip_password" | |
| # ssl 归档目录 | |
| SSL_ARCHIVE_DIR="/data/wwwroot/default/export/ssl/" | |
| # 日期 | |
| CUR_DATE=$(date "+%Y%m%d") | |
| pushd /usr/local/openresty/nginx/conf/ssl > /dev/null |
| proxy_cache_path /data/nginx/cache/pic.xxx.com levels=1:2 keys_zone=pic_xxx_zone:200m inactive=1d max_size=1g; | |
| upstream backend_pic { | |
| server pic.xxx.com; | |
| } | |
| server { | |
| listen 80; | |
| server_name pic.xxx.com; | |
| client_max_body_size 1024M; | |
| access_log /data/wwwlogs/pic.xxx.com_nginx.log combined; | |
| listen 443 ssl http2; |
| # on 启用,off 关闭 | |
| pagespeed on; | |
| # 重置 http Vary 头 | |
| pagespeed RespectVary on; | |
| # html字符转小写 | |
| pagespeed LowercaseHtmlNames on; | |
| # 压缩带 Cache-Control: no-transform 标记的资源 | |
| pagespeed DisableRewriteOnNoTransform off; | |
| # 相对URL | |
| pagespeed PreserveUrlRelativity on; |
| #!/bin/bash | |
| # | |
| # 作者: Jsser <jsser AT qq.com> | |
| # | |
| # 日期:2019-09-09 | |
| # | |
| # 说明:基于OneinStack的一键反代环境安装脚本 | |
| # | |
| # 支持系统:CentOS/RedHat 6+ Debian 8+ and Ubuntu 14+ | |
| # |
| # filename: common/main-local.php | |
| components => [ | |
| /** | |
| * Master | |
| */ | |
| 'db' => [ | |
| 'class' => 'yii\db\Connection', | |
| 'charset' => 'utf8', |