Cerca


stampa pdf

Avvio di servizi su un server dedicato



Trovate in questa guida le informazioni utili per avviare e bloccare i servizi più comuni che si possono installare su un server dedicato.
I comandi riportati sono eseguiti tramite connessione SSH.
Le porte indicate per i vari servizi sono quelle standard utilizzate per quei servizi specifici.


FTP (porta 21)

Il protocollo FTP è gestito da ncftpd.

  • Per disabilitare il servizio è necessario modificare il file /etc/inittab (controllate se include la linea relativa a ncftpd), quindi riavviare init:
# pico /etc/inittab
#/sbin/init q


  • Per riavviare il servizio:
E' sufficiente killare tutti i processi. ncftpd sarà riavviato automaticamente.
# killall -9 ncftpd



SSH (porta 22)
If your ssh doesn't work, you need to enable telnet or use webmin.

Ssh is managed by openssh: www.openssh.com

  • To disable the service:
# /etc/rc.d/init.d/ssh stop


  • To restart the service:
# /etc/rc.d/init.d/ssh start



Telnet (porta 23)
Telnet is managed by xinetd. You need to edit the configuration file for telnet, and restart xinetd. The option in xinetd works the other way, you need to choose no, to activate the service.
# pico /etc/xinetd.d/telnet
#/etc/rc.d/init.d/xinetd restart


  • To enable the service:
# pico /etc/xinetd.d/telnet
# /etc/rc.d/init.d/xinetd restart



Smtp (porta 25)
Smtp is managed by qmail : www.qmail.org
Script operates also on pop3 server.

  • To disable the service:
# cd /
#/etc/rc.d/init.d/qmail stop


  • To enable the service:
# cd /
# /etc/rc.d/init.d/qmail start



DNS (porta 53)
DNS is managed by bind: www.isc.org/products/BIND/

  • To disable the service:
# /etc/rc.d/init.d/named stop


  • To enable the service:
# /etc/rc.d/init.d/named start



Web (porta 80)
Web is managed by Apache: httpd.apache.org

  • To disable the service:
# /etc/rc.d/init.d/httpd stop


  • To enable the service:
# /etc/rc.d/init.d/httpd start



POP3 (porta 110)
POP3 is managed by qmail: www.qmail.org

Script operates also on SMTP.

  • To disable the service:
# cd /
# /etc/rc.d/init.d/qmail stop


  • To enable the service:
# cd /
# /etc/rc.d/init.d/qmail start



IMAP (porta 143)
IMAP is managed by courier-imap: www.inter7.com/

  • To disable the service:
# /etc/rc.d/init.d/imapd stop


  • To enable the service:
# /etc/rc.d/init.d/imapd start



MySQL (porta 3306)
MySQL is managed by mysql: www.mysql.com

  • To disable the service:
# /etc/rc.d/init.d/mysql stop


  • To enable the service:
# /etc/rc.d/init.d/mysql start



Webmin (porta 10000)

Webmin is managed by webmin: www.webmin.com

  • To disable the service:
# /etc/rc.d/init.d/webmin stop


  • To enable the service:
# /etc/rc.d/init.d/webmin start