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
Last revision Both sides next revision
сервис_inetd [2016/08/01 12:00]
val [Ubuntu 14, 16]
сервис_inetd [2022/09/13 14:03]
val [Debian/Ubuntu]
Line 3: Line 3:
 ===== Установка ===== ===== Установка =====
  
-==== Ubuntu ​14,16 ====+==== Debian/Ubuntu ====
 <​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 14:
 [[Средства программирования shell#Web сервер на shell]] [[Средства программирования shell#Web сервер на shell]]
  
-==== Ubuntu ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
 # cat /​etc/​inetd.conf # cat /​etc/​inetd.conf
Line 32: Line 21:
 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
-</code>+#www stream tcp nowait root /usr/​sbin/​chroot chroot /var/www/ /sbin/webd
  
-==== FreeBSD ==== +#8000 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+
 </​code>​ </​code>​
 +
  
 ===== Запуск ==== ===== Запуск ====
  
-==== Ubuntu ​14,16 ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
-# service inetutils-inetd ​start+# service inetutils-inetd ​restart
 </​code>​ </​code>​
  
-==== Ubuntu 12 ==== 
-<​code>​ 
-# /​etc/​init.d/​openbsd-inetd restart 
-</​code>​ 
- 
-==== FreeBSD ==== 
-<​code>​ 
-# /​etc/​rc.d/​inetd start 
-</​code>​ 
  
сервис_inetd.txt · Last modified: 2022/09/13 14:06 by val