This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_inetd [2016/08/02 11:34] val |
сервис_inetd [2024/12/30 19:03] (current) val [Debian/Ubuntu] |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Установка ===== | ===== Установка ===== | ||
- | ==== Ubuntu 14,16 ==== | + | ==== Debian/Ubuntu ==== |
+ | |||
+ | * [[https://serverfault.com/questions/389645/ftp-tcp-server-failing-looping|ftp/tcp server failing (looping)]] | ||
<code> | <code> | ||
# apt install inetutils-inetd | # apt install inetutils-inetd | ||
</code> | </code> | ||
- | ==== Ubuntu 12 ==== | ||
- | <code> | ||
- | # apt-get install openbsd-inetd | ||
- | </code> | ||
- | ==== FreeBSD ==== | ||
- | <code> | ||
- | # cat /etc/rc.conf | ||
- | </code><code> | ||
- | ... | ||
- | inetd_enable=yes | ||
- | </code> | ||
===== Настройка ==== | ===== Настройка ==== | ||
Line 25: | Line 17: | ||
[[Средства программирования shell#Web сервер на shell]] | [[Средства программирования shell#Web сервер на shell]] | ||
- | ==== Ubuntu ==== | + | ==== Debian/Ubuntu ==== |
<code> | <code> | ||
# cat /etc/inetd.conf | # cat /etc/inetd.conf | ||
+ | |||
+ | или | ||
+ | |||
+ | # cat /etc/inetd.d/my.conf | ||
</code><code> | </code><code> | ||
... | ... | ||
Line 33: | Line 29: | ||
#www stream tcp nowait user1 /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 | #www stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
- | </code> | ||
- | ==== FreeBSD ==== | + | #82 stream tcp nowait root /usr/local/sbin/webd webd |
- | <code> | + | |
- | # cat /etc/inetd.conf | + | |
- | </code><code> | + | |
- | ... | + | |
- | 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> | ||
+ | |||
===== Запуск ==== | ===== Запуск ==== | ||
- | ==== Ubuntu ==== | + | ==== Debian/Ubuntu ==== |
<code> | <code> | ||
- | ubuntu16# service inetutils-inetd restart | + | # service inetutils-inetd restart |
- | + | ||
- | ubuntu14# service inetutils-inetd start | + | |
- | + | ||
- | ubuntu12# /etc/init.d/openbsd-inetd restart | + | |
</code> | </code> | ||
- | ==== FreeBSD ==== | ||
- | <code> | ||
- | # /etc/rc.d/inetd start | ||
- | </code> | ||