Come riavviare Apache e MySQL in CentOS/RHEL/Fedora/Scientific Linux Versione

Intermittentemente dobbiamo avviare, riavviarsi o arrestare il server Web Apache o il server MySQL su CentOS. CentOS/Red Hat è il sistema operativo Linux più popolare utilizzato commercialmente come sistema operativo server in ambienti aziendali, cloud e di hosting.

Qui in questo tutorial ti farà conoscere i comandi coloro che puoi usare nel terminale CentOS per fermare/avviare o riavviare MySQL o Apache su CentOS.

I comandi indicati di seguito sono destinati a funzionare specificamente su CentOS/RHEL (Red Hat)/Linux basato su Fedora versione 4.x/5.x/6.x o più anziani.

Comanda di avviare Apache in CentOS

service httpd start

Stop Apache Command

service httpd stop

Comandare al riavvio

service httpd restart

Ora comanda per l'ultima versione CentOS 7.x /RHEL (Red Hat)

Per avviare il server Apacher

systemctl start httpd.service

Stop Command per Apache in CentOS 7

systemctl stop httpd.service

Riavvia il comando per Apache

systemctl restart httpd.service

Come avviare/fermare o riavviare il server MySQL in CentOS/RHEL/Fedora/Scientific Linux Versione

Comandi per avviare o arrestare il server MySQL o MARIADB in CentOS 4.x, 5.x, 6.x o versioni precedenti

Per avviare MySQL in CETNOS utilizza i comandi seguenti:

sudo service mysqld start 

or 

sudo /etc/init.d/mysqld start

Comandi per fermare il server MySQL

sudo service mysqld stop 

or

sudo /etc/init.d/mysqld stop

Per riavviare il server MySQL

sudo service mysqld restart 

or

sudo /etc/init.d/mysqld restart

Per l'ultima versione CentOS 7.x usa i comandi seguenti

L'ultimo CentOS 7.x per impostazione predefinita viene fornito con pacchetti MariaDB ma l'utente può anche installare MySQL. Ecco i comandi per entrambi:

Per iniziare Mariadb

systemctl start mariadb

Per mysql il comando sarà:

systemctl start mysqld

Per fermare il mysql o Mariadb il comando sarà:

Per MariaDB:

systemctl stop mariadb

Per mysql:

systemctl stop mysqld

Per riavviare il database Serve MariaDB o MySQL, seguire il seguente:

Per mysql

 systemctl restart mysqld

Per Mariadb

systemctl restart mariadb

Altre risorse utili

Related Posts