2022年2月13日

rm exe file

摘要: #!/bin/bash ########################################################## # File Name: rm_exe.sh # Author: ims # Created Time: Wed 15 Sep 2021 11:07:54 A 阅读全文

posted @ 2022-02-13 12:25 ims- 阅读(28) 评论(0) 推荐(0) 编辑

2022年1月13日

proxy_switch.bat

摘要: on reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f reg add "HKEY_CURRENT_U 阅读全文

posted @ 2022-01-13 23:38 ims- 阅读(51) 评论(0) 推荐(0) 编辑

2022年1月3日

bazel usage

摘要: 输出文件在当前目录 https://docs.bazel.build/versions/2.0.0/output_directories.html bazel --output_base=./ build :main 阅读全文

posted @ 2022-01-03 23:39 ims- 阅读(36) 评论(0) 推荐(0) 编辑

2021年10月29日

usage of tmux

摘要: tmux 一,结构 Session:用来概括一个任务,是一组窗口的集合。通过在任务开始前创建一个Session,在该Session中进行任务,之后通过断开Session来暂时中断任务,此时与任务相关的状态都会保存在这个Session,通过重新连接Session可以方便的继续未完成的任务。Sessio 阅读全文

posted @ 2021-10-29 09:46 ims- 阅读(63) 评论(0) 推荐(0) 编辑

2021年8月7日

mac. mysql

摘要: 安装 brew install mysql mysql错误文件 /usr/local/var/mysql/MACdeMacBook.local.err mysql配置文件 /etc/my.cnf cat my.cnf [mysqld] server-id =10 max_binlog_size =1 阅读全文

posted @ 2021-08-07 14:21 ims- 阅读(34) 评论(0) 推荐(0) 编辑

2021年4月23日

使用ssh远程编辑

摘要: ssh远程免输密码 使用ssh-copy-id admin@ip 登陆一次即可 使用ssh 在远程主机上执行命令 pc='admin@ip' ssh $pc "tree ~/" scp scp [-P port] 简易写法: scp [可选参数] file_source file_target co 阅读全文

posted @ 2021-04-23 23:20 ims- 阅读(354) 评论(0) 推荐(0) 编辑

2021年3月12日

systemd-udevadm

摘要: 中文手册 https://www.wenjiangs.com/doc/systemd-udevadm systemd-tutorial http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html udev 服务 /usr 阅读全文

posted @ 2021-03-12 10:10 ims- 阅读(331) 评论(0) 推荐(0) 编辑

2021年3月7日

iperf

摘要: -f [k|m|K|M] 分别表示以Kbits, Mbits, KBytes, MBytes显示报告,默认以Mbits为单位,eg:iperf -c 222.35.11.23 -f K -i sec 以秒为单位显示报告间隔,eg:iperf -c 222.35.11.23 -i 2 -l 缓冲区大小 阅读全文

posted @ 2021-03-07 11:37 ims- 阅读(301) 评论(0) 推荐(0) 编辑

2021年3月2日

brctl

摘要: 安装网桥管理工具包:bridge-utile yum install bridge-utils -y 使用brctl命令创建网桥br1 brctl addbr br1 删除网桥br1 brctl delbr br1 将eth0端口加入网桥br1 brctl addif br1 eth0 删除eth0 阅读全文

posted @ 2021-03-02 13:09 ims- 阅读(243) 评论(0) 推荐(0) 编辑

2021年3月1日

NAT

摘要: NAT的基本原理 NAT的定义 由来 解决IPv4短缺问题 现在 简化网络ip地址管理,提高完全性 定义 Network address translator NAT的分类 传统的/单向出站的NAT 对应iptables 的SNAT 基本的NAT 网络地址/端口转换 双向NAT 对应 iptable 阅读全文

posted @ 2021-03-01 19:52 ims- 阅读(303) 评论(0) 推荐(0) 编辑

导航