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 [2013/11/26 10:04] val [Ubuntu] |
сервис_inetd [2016/08/02 11:34] val |
||
---|---|---|---|
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 27: | Line 32: | ||
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 user1 /usr/local/sbin/webd webd | ||
+ | #www stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
</code> | </code> | ||
Line 36: | Line 42: | ||
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 user1 /usr/local/sbin/webd webd | ||
+ | #http stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd | ||
</code> | </code> | ||
Line 42: | 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> | ||