-----------------------------------------------------------------------------------------------------------
>>> Banco de Dados MySQL
# start mysql
[root@localhost ~]# /sbin/service mysql start OU service start mysql
Redirecting to /bin/systemctl start mysql.service
OU
[root@localhost ~]# systemctl start mysql.service
# stop mysql
[root@localhost ~]# /sbin/service mysql stop OU service stop mysql
Redirecting to /bin/systemctl stop mysql.service
OU
[root@localhost ~]# systemctl stop mysql.service
>>> Banco de Dados PostgreSQL
# start postgresql
[root@localhost ~]# /sbin/service postgresql start OU service start postgresql
Redirecting to /bin/systemctl start postgresql.service
OU
[root@localhost ~]# systemctl start postgresql.service
# stop postgresql
[root@localhost ~]# /sbin/service postgresql stop OU service stop postgresql
Redirecting to /bin/systemctl stop postgresql.service
OU
[root@localhost ~]# systemctl stop postgresql.service
>>> Servidor Apache (PHP)
# start apache (httpd)
[root@localhost ~]# /sbin/service httpd start OU service start httpd
Redirecting to /bin/systemctl start httpd.service
OU
[root@localhost ~]# systemctl start httpd.service
# stop apache (httpd)
[root@localhost ~]# /sbin/service httpd stop OU service stop httpd
Redirecting to /bin/systemctl stop httpd.service
OU
[root@localhost ~]# systemctl stop httpd.service
>>> Acesso remoto via ssh
# start openssh (sshd)
[root@localhost ~]# /sbin/service sshd start OU service start sshd
Redirecting to /bin/systemctl start sshd.service
OU
[root@localhost ~]# systemctl start sshd.service
# stop openssh (sshd)
[root@localhost ~]# /sbin/service sshd stop OU service stop sshd
Redirecting to /bin/systemctl stop sshd.service
OU
[root@localhost ~]# systemctl stop sshd.service
By: Gilson Silva ;-)
Dica show do caramba! :-)
ResponderExcluirKkk... Valeu Gabriel! Sou seu fã... Abraços... 😉✌️
ResponderExcluir