在 centos 机器上,我喜欢转储 tcp 连接 - 我想看看服务器是否尝试向某个 IP 发送请求。通常 tcpdump 可以解决问题 - 但 tcpdump 没有安装,并且安装软件不是一个选项(因为公司政策)。恐怕 netstat 不会向我显示一个请求。
所以我想知道我还有什么其他选择。我确实在服务器上有 root 访问权限。
我尝试使用专家配方为 debian 6.0.5 netinstall 配置 lvm。我不想被问到任何问题,但它一直问我“将更改写入磁盘并配置 LVM?”
这是我的 preseed.cfg 的一部分:
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto/expert_recipe string \
boot-root :: \
128 50 128 ext2 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext2 } \
mountpoint{ /boot } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ root } \ …Run Code Online (Sandbox Code Playgroud) 在 centos 7 虚拟机上,我创建了一个这样的团队:
nmcli connection add type team con-name team0 ifname veteam0
nmcli connection modify team0 team.config roundrobin.conf
[root@rhce1 ~]# cat roundrobin.conf
{
"device": "team0",
"runner": {"name": "roundrobin"},
"ports": {"enp0s9": {}, "enp0s10": {}}
}
# add slave interfaces
nmcli connection add type team-slave con-name team0-port0 ifname enp0s9 master team0
nmcli connection add type team-slave con-name team0-port1 ifname enp0s10 master team0
Run Code Online (Sandbox Code Playgroud)
我现在有以下连接:
[root@rhce1 ~]# nmcli con s
NAME UUID TYPE DEVICE
team0 77869010-af1a-48a5-b10b-c05b3035837f team veteam0
team0-port1 99f54013-b20b-41d2-9661-d654b89870bd 802-3-ethernet enp0s10
team0-port0 …Run Code Online (Sandbox Code Playgroud) 我在solaris 10中有一个“门”类型的文件(这是一种进程间通信的方式)。它以某种方式遗留下来,我想摆脱它。我不能只用 rm 删除它...
ls -l
total 0
Dr--r--r-- 1 root root 0 Oct 12 2012 name_service_door
# rm name_service_door
rm: name_service_door not removed: Device busy
# lsof name_service_door
Run Code Online (Sandbox Code Playgroud)
显然某些进程仍在使用它。但是, lsof 不显示任何内容。来自“ps -elf”的人也不清楚是谁在使用它。我怎样才能摆脱这个文件?
更新:我重新启动服务器,这当然杀死了所有进程,从而释放了文件。然后我可以删除它。但是,我仍然有兴趣知道如何在不重新启动的情况下执行此操作(在生产环境中,这并不总是一种选择)。
对于小型多宿主网络 (/21),我正在研究适用于 linux 的可能的 bgp 路由器软件。我发现
并且想知道是否
我知道之前讨论过类似的话题,但现在已经三年了,所以情况可能已经改变了。