摘要:
执行脚本时,如果在脚本当前目录,很容易获取脚本所在绝对路径,但是如果在其他目录可能以绝对路径或相对路径的方式执行脚本,此时pwd获取到的是当前路径,而不是脚本所在的绝对路径,获取脚本所在的绝对路径要通过以下方式: path=$(cd `dirname $0`;pwd) $0 为执行时 引用脚本的路径 阅读全文
posted @ 2020-06-10 18:56
ascertain
阅读(552)
评论(0)
推荐(0)
摘要:
编译安装: ./configure --prefix=/usr/local/ovs make -j 4 make install modprobe openvswitch echo 'export PATH=$PATH:/usr/local/ovs/share/openvswitch/scripts 阅读全文
posted @ 2020-06-10 17:25
ascertain
阅读(398)
评论(0)
推荐(0)

浙公网安备 33010602011771号