script script is the only required keyword that a job needs. It's a shell script which is executed by the Runner. For example: job: script: "bundle ex ...
分类:
其他好文 时间:
2020-06-23 18:56:37
阅读次数:
111
最进项目中使用到了socketproc通信,但是这样有一点不是很好,必须单独启动一个进程来执行代码中的shell命令,后面想在nginx+lua的环境下使用openresty中的lua-resty-shell,但是在后续阅读源码说明的时候发现依赖关系过于复杂,会导致引入的openresty模块越来越 ...
分类:
其他好文 时间:
2020-06-23 18:55:07
阅读次数:
110
#!/bin/bash ssh-keygen cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys ulimit -n 10000 yum install - ...
分类:
系统相关 时间:
2020-06-23 15:50:21
阅读次数:
83
简介在生产工作中,后台的服务器并不可能永远都处于正常运行状态,若服务器发生宕机,为了不影响正在进行的业务以及给用户更好的体验,我们需要通过编写监控脚本对LVS的后台主机存活情况进行监控,当有服务器发生故障时,脚本会从LVS转发策略删除该服务器的转发规则;等到服务器恢复正常后,脚本也将把该服务器的转发规则重新加入LVS转发策略中;若所有的后台服务器都宕机了,则脚本会自动把虚拟ip的端口转发到本机端口
分类:
系统相关 时间:
2020-06-23 15:29:21
阅读次数:
71
官方文档说明:https://support.apple.com/zh-cn/HT208050 macOS Catalina 版开始 终端会提示 The default interactive shell is now zsh. To update your account to use zsh, ...
分类:
系统相关 时间:
2020-06-23 13:29:25
阅读次数:
109
grep (Global search Regular Expression(RE) and Print out the line, 全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。 ...
分类:
系统相关 时间:
2020-06-23 13:18:34
阅读次数:
62
private const int SW_HIDE = 0; private const int SW_RESTORE = 9; private const string SHELL_TRAYWND = "Shell_TrayWnd"; private const string BUTTON = " ...
让MySQL为我们记录执行流程 我们可以开启profiling,让MySQL为我们记录SQL语句的执行流程 查看profiling参数 shell > select @@profiling; 进行更改 shell > set profiling = 1; 执行语句 select * from emp ...
分类:
数据库 时间:
2020-06-23 01:17:05
阅读次数:
99
方法:修改setting.json文件,添加以下代码,保存后重新打开新终端 , "terminal.integrated.shellArgs.windows": ["/K chcp 65001 >nul"], "terminal.integrated.fontFamily": "Lucida Con ...
分类:
其他好文 时间:
2020-06-23 00:55:33
阅读次数:
136
本文承接之前安装虚拟机完成的,没有看过的,可以先看下。 上文链接:https://www.cnblogs.com/chongchongstyle/p/13162331.html 因为项目需要就去研究了一些如何去配置,可能跟一些大佬的不同,希望大佬看到不对的能指点一二,哈哈。那废话不多说啦,直接上步骤 ...
分类:
数据库 时间:
2020-06-23 00:51:26
阅读次数:
99