我正在尝试在 FreeBSD 9 中入狱
配置:
等/rc.conf:
#jails:
jail_enable="YES"
jail_interface="re0"
jail_devfs_enable="YES"
jail_procfs_enable="YES"
jail_set_hostname_allow="YES"
jail_list="test"
ifconfig_em0_alias0="inet 192.168.9.254 netmask 255.255.255.255"
jail_test_rootdir="/usr/home/jails/test.local"
jail_test_hostname="test.local"
jail_test_ip="192.168.9.254"
jail_test_interface="re0"
jail_test_devfs_enable="YES"
jail_test_procfs_enable="YES"
jail_test_exec_start="/bin/sh /etc/rc"
jail_test_exec_stop="/bin/sh /etc/rc.shutdown"
jail_test_flags="-l -U root"
在此之后,我试图启动它:
mybsd#jail start
或 mybsd#jail start test 但是两个命令都返回这样的错误:
jail: no -c or -m, so this must be an old-style command.
But it doesn't look like one.
请告知如何在“新式”命令中启动监狱?
非常感谢!