11 2019 档案
摘要:1 windows echo param1>param.txt echo param2>>param.txt echo param3>>param.txt call interactive.cmd < param.txt pause 最简单的 (echo input1 && echo input2)
阅读全文
摘要:mount -t cifs //10.100.100.250/产品服务器/待测库/FI\ Cloud/CICD/BuildRoot_Dev/ /cicd --verbose -o vers=1.0,username=xxxxxx,password='xxxxxx' 注意 1 路径空格需要转义 \_
阅读全文
摘要:stringify两次 JSON.stringify(JSON.stringify(obj))
阅读全文
摘要:1 新建powershell脚本文件 <# This is a workaround for "node-gyp is unable to find msbuild if VS2019 is installed" https://github.com/nodejs/node-gyp/issues/1
阅读全文
摘要:1 查看启用的units systemctl list-unit-files | grep enabled 2 查看指定服务的日志 按服务单元过滤 journalctl -u j 查看j.service的日志 /输入shift+f 与tail -f等效 / 输入sfhit+g 到日志尾部 3 增加工
阅读全文
摘要:1 安装 # yum install sshfs # dnf install sshfs [On Fedora 22+ releases] $ sudo apt-get install sshfs [On Debian/Ubuntu based systems] 2 创建挂载目录 mkdir /21
阅读全文
摘要:1 安装 yum install samba samba-client samba-common -y 2 配置 vim /etc/samba/smb.conf 在最下面增加 [wolbo] path = /home/wolbo browseable = yes writable = yes val
阅读全文
摘要:以下内容复制自https://blog.csdn.net/qingfengxulai/article/details/80853870 放置此处便于检索 1 安装 sudo yum install squid 安装http工具 yum install httpd-tools -y 2 配置() 生成
阅读全文
摘要:安装与卸载参考:https://docs.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse [C:\] system32 >Add-WindowsCapability -Online
阅读全文
摘要:1 var fs = require("fs"), path = require("path"); function walk(dir, callback) { fs.readdir(dir, function(err, files) { if (err) throw err; files.forE
阅读全文
摘要:1 新建调试配置 2 添加远程调试配置 设置IP,端口后 获得启动参数 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=4001 3 将启动参数添加至远端启动命令中 4 启动远程服务 启动本地调试
阅读全文
摘要:java的类型转换让人忍不住在开始编码前骂一声 FUCK! 1 子类转父类 up List<SubClass> subs = ...; List<? extends BaseClass> bases = subs; 2 父类转子类 down //强转public class TestA {} pub
阅读全文
摘要:1 在系统引导页面 按e 修改启动参数 2 将LANG改为en_US.UTF-8 并空格增加 init=/bin/sh 启动shell 改完后按ctrl+x 启动 3 重新挂载root mount -o remount, rw / 重置用户密码 password root 创建.autorelabe
阅读全文
摘要:1 首先想到的是递归遍历目录 筛选出符合条件的文件 dir命令递归遍历目录 /b控制显示格式 /s递归 /ad 只显示目录 dir /b/s .\* 判断文件类型 操作数得用`` rem 取出文件扩展名 %%~XI rem 判断相等 if `%%~XI` equ `.jar`( echo %%I )
阅读全文
摘要:1 新建service配置文件 vi /etc/systemd/system/node.service [Unit]Description=My super nodejs app [Service]# set the working directory to have consistent rela
阅读全文
摘要:1 安装svnserve yum install subversion -y 2 创建仓库 mkdir /svn/rep1 -p mkdir /svn/rep2 -p svnadmin create /svn/rep1 svnadmin create /svn/rep2 3 修改仓库配置 rep2配
阅读全文