Fork me on GitHub

李可

导航

统计

随笔分类 -  linux

我的运维
摘要:cetos7 防火墙 firewall cmd https://www.cnblogs.com/klvchen/p/10063875.html 安装mysql https://www.cnblogs.com/starof/p/4680083.html 阅读全文

posted @ 2019-07-17 20:04 李可在江湖 阅读(177) 评论(0) 推荐(0) 编辑

crobtab
摘要:在使用node cron包,作者在 "issue建议" 使用 https://crontab.guru/ 测试使用定时任务 发现一个问题 https://crontab.guru/ 0_23_11 12,18 19_ _0 0 23 11 12,18 19 0 每月的11 12,18 19号和周末( 阅读全文

posted @ 2019-07-08 11:37 李可在江湖 阅读(203) 评论(0) 推荐(0) 编辑

vim
摘要:u是撤销你刚才做的动作 http://dsec.pku.edu.cn/~jinlong/vi/Vi.html 阅读全文

posted @ 2019-01-02 13:46 李可在江湖 阅读(116) 评论(0) 推荐(0) 编辑

mkdir npm
摘要:mkdir p 创建目录 没有就创建 有就用 npm init y 不提示创建package.json 文件 阅读全文

posted @ 2018-12-22 00:04 李可在江湖 阅读(303) 评论(0) 推荐(0) 编辑

我的vimrc设置
摘要:vim一个文件 :e version :editor version 查看.vimrc所在的系统和用户文件 vim ~/.vimrc 阅读全文

posted @ 2018-11-20 18:00 李可在江湖 阅读(222) 评论(0) 推荐(0) 编辑

nginx
摘要:查看nginx安装哪里 sudo su //切换root find / name nginx//在根目录下找名字 只是nginx 的文件 /etc/logrotate.d/nginx /etc/nginx //一般在这里 /etc/rc.d/init.d/nginx /etc/sysconfig/n 阅读全文

posted @ 2018-11-05 18:23 李可在江湖 阅读(291) 评论(0) 推荐(0) 编辑

lsof
摘要:查看端口 被哪个进程占用了 lsof i:6565 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Google 365 didi 187u IPv4 0x9de5a29dff036b09 0t0 TCP localhost:60284 loca 阅读全文

posted @ 2018-10-29 12:40 李可在江湖 阅读(222) 评论(0) 推荐(0) 编辑

bashrc和bash_profile
摘要:在~/.bashrc中起别名 ~/.bash_profile中也不用 阅读全文

posted @ 2018-10-28 16:18 李可在江湖 阅读(166) 评论(0) 推荐(0) 编辑

centos安装tree命令
摘要:centos安装tree命令 windows安装tree命令 "我的另一篇" 阅读全文

posted @ 2018-10-09 11:59 李可在江湖 阅读(2165) 评论(0) 推荐(0) 编辑

linux查看磁盘大小df命令
摘要:https://www.cnblogs.com/sparkdev/p/9273094.html 阅读全文

posted @ 2018-10-09 11:56 李可在江湖 阅读(483) 评论(0) 推荐(0) 编辑

linux查看文件夹大小du命令
摘要:查看1级( max depth=1)目录的大小,并排序 "参考" h或–human readable 以K,M,G为单位,提高信息的可读性。 –max depth= 超过指定层数的目录后,予以忽略 rm rf 文件之后 df 占比还很高 lsof s | grep "delete" | sort k 阅读全文

posted @ 2018-10-09 11:50 李可在江湖 阅读(1186) 评论(0) 推荐(0) 编辑

vscode的环境变量code
摘要:vscode的安装路径 本质:vscode的安装路径/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin 下面有code可执行文件 在命令行中打上code的实惠,会从PATH中,路径列表中找,这些路径下是否有code可执行 阅读全文

posted @ 2018-10-03 16:19 李可在江湖 阅读(20131) 评论(0) 推荐(0) 编辑

linux创建快捷方式ln命令
摘要:创建快捷方式命令 在桌面上添加一个,创建一个文件夹(这里是work)的快捷方式 //这样我桌面就有一个链接 软链接和硬链接区别 阅读全文

posted @ 2018-10-03 13:06 李可在江湖 阅读(812) 评论(0) 推荐(0) 编辑

linux显示历史命令history
摘要:history 阅读全文

posted @ 2018-10-01 14:50 李可在江湖 阅读(435) 评论(0) 推荐(0) 编辑

mac使用brew安装sshpass
摘要:brew安装sshpass 登陆 起别名 vim ~/.bash_profile ssh alias 插入 alias serv="sshpass p 'mima' ssh user@ip" 立即起效 source ~/.bash_profille serv 就连上服务器啦 阅读全文

posted @ 2018-09-06 14:10 李可在江湖 阅读(1299) 评论(0) 推荐(0) 编辑

shell定时任务crontab
摘要:cat /etc/crontab 阅读全文

posted @ 2018-08-28 14:21 李可在江湖 阅读(162) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示