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 [2020/06/15 13:53] val [FreeBSD] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Установка ===== | ===== Установка ===== | ||
- | ==== Ubuntu ==== | + | ==== Debian/Ubuntu ==== |
<code> | <code> | ||
- | apt-get install openbsd-inetd | + | # apt install inetutils-inetd |
</code> | </code> | ||
- | ==== FreeBSD ==== | + | |
- | <code> | + | |
- | # cat /etc/rc.conf | + | |
- | </code><code> | + | |
- | ... | + | |
- | inetd_enable=yes | + | |
- | </code> | + | |
===== Настройка ==== | ===== Настройка ==== | ||
- | [[Средства программирования shell#Web свервер на shell]] | + | [[Средства программирования shell#Web сервер на shell]] |
- | ==== Ubuntu ==== | + | ==== Debian/Ubuntu ==== |
<code> | <code> | ||
# cat /etc/inetd.conf | # cat /etc/inetd.conf | ||
Line 26: | Line 20: | ||
... | ... | ||
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 30: | ||
... | ... | ||
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> | ||
+ | |||
+ | ===== Запуск ==== | ||
+ | |||
+ | ==== Debian/Ubuntu ==== | ||
+ | <code> | ||
+ | # service inetutils-inetd restart | ||
+ | </code> | ||
+ | |||
+ | ==== FreeBSD ==== | ||
+ | <code> | ||
+ | # service inetd start | ||
</code> | </code> | ||