User Tools

Site Tools


сервис_xinetd

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
сервис_xinetd [2013/11/22 11:16]
val [Пример сервиса]
сервис_xinetd [2020/07/20 07:03]
val [Настройка]
Line 1: Line 1:
 ====== Сервис XINETD ====== ====== Сервис XINETD ======
  
-===== Пример ​сервиса ====+===== Установка ====
 <​code>​ <​code>​
 +# apt install xinetd
 +
 +# yum install xinetd
 +
 +# pkg install xinetd
 +</​code>​
 +
 +===== Настройка ====
 +<​code>​
 +# less /​etc/​xinetd.conf
 +
 # cat /​etc/​xinetd.d/​www # cat /​etc/​xinetd.d/​www
 </​code><​code>​ </​code><​code>​
 service www service www
 +#service http-alt
 { {
 +        # disable = yes
         socket_type = stream         socket_type = stream
         protocol = tcp         protocol = tcp
         wait = no         wait = no
         user = root         user = root
-        server = /​usr/​sbin/​chroot +        ​ 
-        server_args = /var/www/ /sbin/webd+#        server = /​usr/​local/​sbin/​webd 
 + 
 +#        ​server = /​usr/​sbin/​chroot 
 +       ​server_args = /var/www/ /sbin/webd 
 + 
 +#        server = /​usr/​bin/​runcon 
 +#        server_args = -t inetd_child_t -r system_r -u system_u /​usr/​local/​sbin/​webd 
 } }
 </​code>​ </​code>​
- 
 ===== Параметры безопасности ==== ===== Параметры безопасности ====
 <​code>​ <​code>​
сервис_xinetd.txt · Last modified: 2020/07/20 07:04 by val