This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_inetd [2012/06/07 16:29] val |
сервис_inetd [2016/10/07 12:27] val [FreeBSD] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Установка ===== | ===== Установка ===== | ||
- | ==== Ubuntu ==== | + | ==== Ubuntu 14,16 ==== |
+ | <code> | ||
+ | # apt install inetutils-inetd | ||
+ | </code> | ||
+ | |||
+ | ==== Ubuntu 12 ==== | ||
<code> | <code> | ||
- | apt-get install openbsd-inetd | + | # apt-get install openbsd-inetd |
</code> | </code> | ||
Line 18: | Line 23: | ||
===== Настройка ==== | ===== Настройка ==== | ||
- | [[Средства программирования shell#Web свервер на shell]] | + | [[Средства программирования shell#Web сервер на shell]] |
==== Ubuntu ==== | ==== Ubuntu ==== | ||
Line 26: | Line 31: | ||
... | ... | ||
www stream tcp nowait root /usr/local/sbin/webd webd | www stream tcp nowait root /usr/local/sbin/webd webd | ||
- | #www stream tcp nowait nobody /usr/local/sbin/webd webd | + | #www stream tcp nowait user1 /usr/local/sbin/webd webd |
+ | #www stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
</code> | </code> | ||
Line 35: | Line 41: | ||
... | ... | ||
http stream tcp nowait root /usr/local/sbin/webd webd | http stream tcp nowait root /usr/local/sbin/webd webd | ||
+ | #http stream tcp nowait user1 /usr/local/sbin/webd webd | ||
+ | #http stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
</code> | </code> | ||
Line 41: | Line 49: | ||
==== Ubuntu ==== | ==== Ubuntu ==== | ||
<code> | <code> | ||
- | # /etc/init.d/openbsd-inetd restart | + | ubuntu16# service inetutils-inetd restart |
+ | |||
+ | ubuntu14# service inetutils-inetd start | ||
+ | |||
+ | ubuntu12# /etc/init.d/openbsd-inetd restart | ||
</code> | </code> | ||
==== FreeBSD ==== | ==== FreeBSD ==== | ||
<code> | <code> | ||
- | # /etc/rc.d/inetd start | + | # service inetd start |
</code> | </code> | ||