Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2004-08-08 18:23:24
Size: 525
Editor: hd
Comment: 先个头,回头再说罢。时间不多了
Revision 4 as of 2004-08-08 23:59:14
Size: 860
Editor: hd
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
= jail增强剂 = = jail十全补丸 =
Line 8: Line 8:
== 章标题1 == == 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了。
Line 10: Line 26:
=== 小节标题1 ===
{{{
#!python
Python code
}}}

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

== 章标题2 ==

=== 小节标题2 ===
{{{
其它
代码引用
}}}

==== 次节标题2 ====
yyy
== ==

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