Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2004-08-08 23:55:40
Size: 851
Editor: hd
Comment: 加入jailer
Revision 5 as of 2004-08-09 00:34:19
Size: 861
Editor: hd
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:

== ==

-- hd [DateTime(2004-08-08T18:23:24Z)] TableOfContents

jail十全大补丸

只是简单的使用jail会发现许多的不方便,哪么bsder们很早就给你准备了一堆增强工具,让jail的应用更加灵活。从而极大的提高了jail应用的方便程度。

jailer

使用jailer可以让你更好的管理vhost。使用方法是在安装好后的vhost中安装jailer:

cd /usr/ports/sysutil/jailer
make install
make clean

这样在你的vhost中就有了/usr/local/sbin/jailer应用程序。 启动vhost的脚本由

jail path hostname ip-number /bin/sh /etc/rc

变为

jail path hostname ip-number /usr/local/sbin/jailer

这样就可以发现在启动的进程中有一个jailer的进程,你可以用kill来重启和关闭一个jail的vhost了。

bsd/JailToolsHowto (last edited 2009-12-25 07:15:58 by localhost)