terça-feira, 17 de março de 2015

DICA RÁPIDA PARA INICIANTES COM SERVIÇOS OU SERVIDORES LINUX, OU PARA RELEMBRAR TAMBÉM...

>>> Boa noite galera! Desculpem a demora. Bom segue um simples artigo testado no Fedora 21, mas creio eu que alguns dos comandos servem para todas as distribuições Linux existentes... ;-)

-----------------------------------------------------------------------------------------------------------
>>> 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 ;-)

2 comentários: