Stella981 Stella981
2年前
Docker部署openvpn
配置环境变量:cat~/.bash_profileexportOVPN_DATA/data/ovpn_dataexportIP公网ip加载环境变量source~/.bash_profile 拉取镜像dockerpullkylemanna/openvpn配置vpn服务端公
Stella981 Stella981
2年前
Bash 脚本中的 set
有些开发人员会用Bash来实现很复杂的功能,就像使用别的高级语言一样。他可能觉得自己很牛逼但其他人早就想锤爆他了,Bash的可读性和可维护性远远低于任何高级语言。更要命的是,Bash并没有方便的调试工具和防错机制,出了问题你要排查半天。<!more在Ruby或者Python等高级语言里,你很容易知道错误是哪行什么类型的错误,还有IDE的
Wesley13 Wesley13
2年前
Linux下MySQL自启动
命令echo"servicemysqldstart"/etc/rc.local或者进入/etc/目录,直接vimrc.local编辑rc.local文件,在最后一行添加“servicemysqldstart”,保存退出bash:/etc/rc.local:Permissiondenied分析:bash返回 /etc/rc
Stella981 Stella981
2年前
Linux Bash
SET命令用途:可以设置shell的执行方式,不带参数时输出环境变量。setabCdefhHklmnpPtuvx注:1.表示设置参数2.表示取消设置参数示例:tmp"niceday"$tmpnice
Stella981 Stella981
2年前
Bash Shell(三)
安装软件前一般是先挂在光驱,从中找到指定的软件。建立光驱挂在的目录:  mkdirp/cdrom挂载光驱:  mounttiso9660/dev/cdrom1/cdrom找到要安装的软件:  cd/cdrom/Packages/  lsllrzsz0.12.2028.1.e16.x86\
Stella981 Stella981
2年前
Run terraform with Docker CLI
bash3.2$dockerrunitrmhashicorp/terraform:latestUsage:terraformversionhelp<commandargsTheavailablecommandsforexecutionarelisted
Stella981 Stella981
2年前
Stella981 Stella981
2年前
Linux学习:正则表达式习题
1.显示/etc/passwd文件中以bash结尾的行123\root@www ~\ grep n '\\(bash\\)$' /etc/passwd1:root:x:0:0:root:/root:/bin/bash38:Allen:x:500:500:Allen.Huang:/hom
Stella981 Stella981
2年前
Qt安装后配置环境变量(Mac)
打开终端需要打开配置文件(注意这里不是bash\_profile而是.bash\_profile,我开始少了".")!(http://static.oschina.net/uploads/img/201603/11172956_Iz3m.png)如果bash\_profile文件不存在,就会自动创建,然后需要输入以下内容:!(http:
十月飞翔 十月飞翔
2年前
bash skills
ctrlr然后输入近期输入的指令开头,入搜‘kill’开头的lslrth按照时间顺序排列输出psef|grepvdbcolor|awk'print$2'|xargskill9将多个vdb相关的进程号传递到后面直接杀掉,一次杀掉多个相关进程vipvdbench/queue.shvdbench/autotest.