Linux内核现在支持一种全新的vrf ()体系结构,它不同于旧的网络命名空间解决方案。
问题:
linux内核支持多少个vrf?
什么系统资源限制了vrf容量?
我是一个新手,在内核源代码,并找不到有关前两个问题的信息。
我编写了一个添加4096 vrf的脚本,并将vrf设备设置在一个开放的x86对接容器中,一切都很好。
剧本:
def main():
for i in range(0, 4096):
cmd("ip link add vrf%d type vrf table %d"%(i,i))
sleep(50)
当使用Python安装脚本时,会像在中讨论的那样替换shebang。
问题是,在我的例子中,它被替换为
#!/ssoft/spack/paien/v2/opt/spack/linux-rhel7-x86_E5v2_IntelIB/gcc-7.3.0/python-3.6.5-5yxsy6j5miw26wxpzrtync5gnhtsv5pt/bin/python3
它看起来太长,操作系统无法处理:
bad interpreter: /ssoft/spack/paien/v2/opt/spack/linux-rhel7-x86_E5v2_IntelIB/g: no such file or dir
无论是通过更新管理器,还是通过终端,我都出错了。
当我尝试sudo apt-get update && sudo apt-get upgrade时:
Fetched 1,024 kB in 20s (51.0 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree Reading state information... Done
You might want to run 'apt-get -f install' to corr
*版本:^10.6.1
*目标:linux
我是ubuntu用户&我无法为我的应用程序设置图标。这是一个错误:
No native production dependencies
Packaging for linux x64 using electron 1.4.1 to dist/linux-unpacked
⚠️ Application icon is not set, default Electron icon will be used
Building AppImage for arch x64
这是我的package.jason的构建部分:
"build"