User Tools

Site Tools


сервис_inetd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_inetd [2015/05/05 12:11]
val [Ubuntu]
сервис_inetd [2017/07/04 09:46]
val
Line 3: Line 3:
 ===== Установка ===== ===== Установка =====
  
-==== Ubuntu ​14 ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
-# apt-get install inetutils-inetd +# apt install inetutils-inetd
-</​code>​ +
- +
-==== Ubuntu 12 ==== +
-<​code>​ +
-# apt-get install openbsd-inetd+
 </​code>​ </​code>​
  
Line 25: Line 20:
 [[Средства программирования shell#Web сервер на shell]] [[Средства программирования shell#Web сервер на shell]]
  
-==== Ubuntu ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
 # cat /​etc/​inetd.conf # cat /​etc/​inetd.conf
Line 32: Line 27:
 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 41: Line 37:
 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>​
  
 ===== Запуск ==== ===== Запуск ====
  
-==== Ubuntu ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
-/​etc/​init.d/​openbsd-inetd restart+service inetutils-inetd restart
 </​code>​ </​code>​
  
 ==== FreeBSD ==== ==== FreeBSD ====
 <​code>​ <​code>​
-/etc/rc.d/inetd start+service ​inetd start
 </​code>​ </​code>​
  
сервис_inetd.txt · Last modified: 2024/05/05 18:35 by val