Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

apache - pokretati u inetd ili standalone modu?

[es] :: Linux/UNIX serveri i servisi :: apache - pokretati u inetd ili standalone modu?

[ Pregleda: 3549 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

bojan_bozovic

Član broj: 29028
Poruke: 3292
*.info-net.co.yu.

Sajt: angelstudio.org


+392 Profil

icon apache - pokretati u inetd ili standalone modu?06.11.2004. u 07:19 - pre 236 meseci
koristim apache 1.3.28 na Linuxu
Da li ga treba na *NIXu pokretati u standalone ili inetd modu? Koja je razlika?
 
Odgovor na temu

anon676

Član broj: 676
Poruke: 759
*.verat.net.



Profil

icon Re: apache - pokretati u inetd ili standalone modu?06.11.2004. u 10:17 - pre 236 meseci
Citat:
xinetd performs the same function as inetd: it starts programs that
provide Internet services. Instead of having such servers started at
system initialization time, and be dormant until a connection request
arrives, xinetd is the only daemon process started and it listens on
all service ports for the services listed in its configuration file.
When a request comes in, xinetd starts the appropriate server. Because
of the way it operates, xinetd (as well as inetd) is also referred to
as a super-server.

Citat:
So far, the only reason for the existence of a super-server was to con-
serve system resources by avoiding to fork a lot of processes which
might be dormant for most of their lifetime. While fulfilling this
function, xinetd takes advantage of the idea of a super-server to pro-
vide features such as access control and logging. Furthermore, xinetd
is not limited to services listed in /etc/services. Therefore, anybody
can use xinetd to start special-purpose servers.


Samo otkucaš man xinetd i sve lepo piše

Citat:

inetd
The server will be run from the system process inetd; the command to start the server is added to /etc/inetd.conf

standalone
The server will run as a daemon process; the command to start the server is added to the system startup scripts. (/etc/rc.local or /etc/rc3.d/....)

Iz Apache dokumentacije.
 
Odgovor na temu

MoHicAn

Član broj: 43
Poruke: 1893
*.wireless.org.yu.



Profil

icon Re: apache - pokretati u inetd ili standalone modu?09.11.2004. u 00:46 - pre 235 meseci
Nisam primetio da je lik pitao sta je inetd a sta standalone niti kako se podesava koji !!!


ODGOVOR: apache furaj standalone da ne sirim pricu zasto.
 
Odgovor na temu

bojan_bozovic

Član broj: 29028
Poruke: 3292
*.info-net.co.yu.

Sajt: angelstudio.org


+392 Profil

icon Re: apache - pokretati u inetd ili standalone modu?09.11.2004. u 02:20 - pre 235 meseci
Upravo bi me ta prica zasto mozda zanimala :)
Koristim inetd, ne xinetd (sto znaci da nemam automatsku zastitu od syn flooding napada, ako je ne ukljucim u kernelu - mozda nakon rekompilacije)...

Nastavite sad... Ovo je elitesecurity nije li :)
 
Odgovor na temu

dinke
Dragan Dinić
General Manager / Lampix.net
Beograd

Član broj: 933
Poruke: 1008
*.nat-pool.kg.sbb.co.yu.

Sajt: www.dinke.net


+2 Profil

icon Re: apache - pokretati u inetd ili standalone modu?09.11.2004. u 23:52 - pre 235 meseci
Google is your friend Boki :)

https://secure.linuxports.com/howto/www/WWW-HOWTO-7.html

Citat:

7.7 Daemon mode vs. Inetd mode

There are two ways that apache can be run. One is as a daemon that is always running (Apache calls this standalone). The second is from the inetd super-server.

Daemon mode is far superior to inetd mode. Apache is setup for daemon mode by default. The only reason to use the inetd mode is for very low use applications. Such as internal testing of scripts, small company Intranet, etc. Inetd mode will save memory because apache will be loaded as needed. Only the inetd daemon will remain in memory.

If you don't use apache that often you may just want to keep it in daemon mode and just start it when you need it. Then you can kill it when you are done (be sure to kill the parent and not one of the child processes).

To setup inetd mode you need to edit a few files. First in /etc/services see if http is already in there. If its not then add it:

http 80/tcp

Right after 79 (finger) would be a good place. Then you need to edit the /etc/inetd.conf file and add the line for Apache:

http stream tcp nowait root /usr/sbin/httpd httpd

Be sure to change the path if you have Apache in a different location. And the second httpd is not a typo; the inet daemon requires that. If you are not currently using the inet daemon, you may want to comment out the rest of the lines in the file so you don't activate other services as well (FTP, finger, telnet, and many other things are usually run from this daemon).

If you are already running the inet deamon (inetd), then you only need to send it the SIGHUP signal (via kill; see kill's man page for more info) or reboot the computer for changes to take effect. If you are not running inetd then you can start it manually. You should also add it to your init files so it is loaded at boot (the rc.local file may be a good choice).

 
Odgovor na temu

[es] :: Linux/UNIX serveri i servisi :: apache - pokretati u inetd ili standalone modu?

[ Pregleda: 3549 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.