iwishing 最近的时间轴更新
iwishing
ONLINE

iwishing

V2EX 第 112230 号会员,加入于 2015-04-21 10:45:13 +08:00
今日活跃度排名 5178
iwishing 最近回复了
38 天前
回复了 rayn32 创建的主题 Linux 怎么管理服务器和不同的服务
用 excel 一样可以管理,参考 k8s 的概念,给每个节点(服务器)打标签( label ),给服务打标签。
另,服务器数据不做共享存储嘛?不用对象存储也至少 NFS 。-_-b
另外考虑一下 ansible tower ?
插眼 膜拜大佬
164 天前
回复了 AngryOrange 创建的主题 分享创造 让 GPT 给自己算一卦! (开源+免费)
用个图像来表示就更好啦
- - 阴爻 ---阳爻
然后贴个二维码,在线占卜,N 元一次,心诚则灵。
@julyclyde #4 这是人家说的-_-b ,2 种情况,1 种就是计数器在内核模块里,一种是在内核里;在内核里没法处理,除了重启操作系统;在模块里就是移除模块再加入。
你用 SSH 操作虚拟机么肯定很容易失联:p. A better solution for remote access is writing these command to a bash script file and then run it with nohup, i.e: nohup bash restart_counters_script.sh
KVM 怎么处理,没查到,猜测是不是虚机是 DHCP 的,重启网卡后直接换 IP 了?地址租期应该没这么短吧。
丢包问题不知道。。你怎么知道丢了 4 个包-_-b ,是不是因为命令执行太慢了?写个脚本吧。
超一下人家的答案。。。
https://askubuntu.com/questions/348038/how-to-reset-ifconfig-counters

Those counters are kept by the kernel, so your answer depends on how your network card driver is built. Two possible choices:

Kernel module
Inside the kernel
If it is second, you can not reset counters without restarting the operating system. If it is first, you can do it by unloading the module from the kernel and then loading it back again. If your NIC card use e1000 module, use following commands:

$ ifconfig eth0 down
$ modprobe -r e1000
$ modprobe e1000
$ ifconfig eth0 up
Use ethtool to find out your NIC module:

$ ethtool -i eth0
In front of driver you see your module name:

driver: e1000
version: 7.3.21-k8-NAPI
firmware-version:
...
Use apt-get to install ethtool as follow:

$ apt-get install ethtool
218 天前
回复了 justicelove 创建的主题 Vim window 环境怎么解决 vim 热键冲突的问题
@justicelove #5 还有一种解决办法是用 ctrl+q 来块操作,这样不用删原来的快捷键。
219 天前
回复了 justicelove 创建的主题 Vim window 环境怎么解决 vim 热键冲突的问题
是指 windows terminal 使用 vim 时候粘贴 ctrl-v 和 visual block 冲突么? 昨天我也遇到了,解决办法是编辑 windows terminal 的设置,“操作”里面把粘贴和复制的快捷键给删除了。反正可以用 control/shift+insert 解决。别的解决办法 https://stackoverflow.com/questions/426896/vim-ctrl-v-conflict-with-windows-paste https://www.notefeel.com/windows-terminal-default-configuration-ctrl-v-conflicts-with-vim-shortcuts
270 天前
回复了 yaott2020 创建的主题 Linux 请诸位 Linux 用户泼醒我
windows+wsl2 最好的 linux 发布版
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5138 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 05:41 · PVG 13:41 · LAX 22:41 · JFK 01:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.