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
сервис_xinetd [2017/05/31 08:06]
val
сервис_xinetd [2020/07/20 07:04] (current)
val [Настройка]
Line 5: Line 5:
 <​code>​ <​code>​
 # apt install xinetd # apt install xinetd
 +
 +# yum install xinetd
  
 # pkg install xinetd # pkg install xinetd
Line 10: Line 12:
  
 ===== Настройка ==== ===== Настройка ====
 +
 +  * [[Средства программирования shell#Web сервер на shell]]
 +
 <​code>​ <​code>​
-cat /etc/inetd.conf+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.1496207161.txt.gz · Last modified: 2017/05/31 08:06 by val