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/03/27 13:25] val |
сервис_inetd [2016/08/02 11:34] val |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Установка ===== | ===== Установка ===== | ||
- | ==== Ubuntu ==== | + | ==== Ubuntu 14,16 ==== |
<code> | <code> | ||
- | apt-get install openbsd-inetd | + | # apt install inetutils-inetd |
+ | </code> | ||
+ | |||
+ | ==== Ubuntu 12 ==== | ||
+ | <code> | ||
+ | # 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 user1 /usr/local/sbin/webd webd | ||
+ | #www stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
</code> | </code> | ||
Line 34: | 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> | ||
+ | |||
+ | ===== Запуск ==== | ||
+ | |||
+ | ==== Ubuntu ==== | ||
+ | <code> | ||
+ | ubuntu16# service inetutils-inetd restart | ||
+ | |||
+ | ubuntu14# service inetutils-inetd start | ||
+ | |||
+ | ubuntu12# /etc/init.d/openbsd-inetd restart | ||
+ | </code> | ||
+ | |||
+ | ==== FreeBSD ==== | ||
+ | <code> | ||
+ | # /etc/rc.d/inetd start | ||
</code> | </code> | ||