Differences between revisions 2 and 3
Revision 2 as of 2004-08-08 23:33:28
Size: 525
Editor: hd
Comment:
Revision 3 as of 2004-08-08 23:55:40
Size: 851
Editor: hd
Comment: 加入jailer
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
== 章标题1 ==

=== 小节标题1 ===
== jailer ==
使用jailer可以让你更好的管理vhost。使用方法是在安装好后的vhost中安装jailer:
Line 12: Line 11:
#!python
Python code
cd /usr/ports/sysutil/jailer
make install
make clean
Line 15: Line 15:

==== 次节标题1 ====
xxx

== 章标题2 ==

=== 小节标题2 ===
这样在你的vhost中就有了{{{/usr/local/sbin/jailer}}}应用程序。
启动vhost的脚本由
Line 23: Line 18:
其它
代码引用
jail path hostname ip-number /bin/sh /etc/rc
Line 26: Line 20:

==== 次节标题2 ====
yyy
变为
{{{
jail path hostname ip-number /usr/local/sbin/jailer
}}}
这样就可以发现在启动的进程中有一个jailer的进程,你可以用kill来重启和关闭一个jail的vhost了。

-- 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)