Instalação do Centos7

De Wiki do Ouro Minas Palace Hotel
Revisão de 03h12min de 8 de agosto de 2020 por imported>Admin (uma edição)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

RASCUNHO

instalei e atualizei o Centos7

troquei a cpu de nome editando o arquivo /etc/hostname

desabilitei o selinux em /etc/sysconfig/selinux

editei as placas de rece com o comando nmtui

entrei no setup e desabilitei todos os servicos menos network

mudei a porta do servico ssh para a 9282 e permiti o login do root


atençao: os servicos disponiveis estao no diretorio

/usr/lib/systemd/system

e para ligalos sao criados links no diretorio

/etc/systemd/system/multi-user.target.wants/

desliguei todo os servicos possiveis. Para tal dei um la -al em /etc/systemd/system

executei o comando chkconfig firewalld off

instalei o repositorio epel


Sobre os Serviços

HEL / CentOS 7 List All Services Fig.01: List all units installed on the CentOS /RHEL 7 systemd based system, along with their current states Fig.01: List all units installed on the CentOS /RHEL 7 systemd based system, along with their current states

To show all units installed on the CentOS /RHEL 7 systemd based system, along with their current states:

  1. systemctl list-unit-files

Sample outputs:

UNIT FILE STATE proc-sys-fs-binfmt_misc.automount static dev-hugepages.mount static dev-mqueue.mount static proc-sys-fs-binfmt_misc.mount static sys-fs-fuse-connections.mount static sys-kernel-config.mount static sys-kernel-debug.mount static tmp.mount disabled brandbot.path disabled systemd-ask-password-console.path static systemd-ask-password-plymouth.path static systemd-ask-password-wall.path static session-1.scope static auditd.service enabled autovt@.service disabled blk-availability.service disabled brandbot.service static console-getty.service disabled console-shell.service disabled container-getty@.service static cpupower.service disabled crond.service enabled dbus-org.freedesktop.hostname1.service static dbus-org.freedesktop.locale1.service static dbus-org.freedesktop.login1.service static dbus-org.freedesktop.machine1.service static dbus-org.freedesktop.network1.service invalid dbus-org.freedesktop.NetworkManager.service enabled dbus-org.freedesktop.nm-dispatcher.service enabled dbus-org.freedesktop.timedate1.service static dbus.service static debug-shell.service disabled dm-event.service disabled dnsmasq.service disabled dracut-cmdline.service static dracut-initqueue.service static dracut-mount.service static dracut-pre-mount.service static dracut-pre-pivot.service static dracut-pre-trigger.service static dracut-pre-udev.service static dracut-shutdown.service static emergency.service static fstrim.service static getty@.service enabled halt-local.service static initrd-cleanup.service static initrd-parse-etc.service static initrd-switch-root.service static To see System V init scripts that are available on your system and the runlevels on which they start, use the chkconfig command as follows:

  1. chkconfig --list

Sample outputs:

Note: This output shows SysV services only and does not include native

     systemd services. SysV configuration data might be overridden by native
     systemd configuration.

     If you want to list systemd services use 'systemctl list-unit-files'.
     To see services enabled on particular target use
     'systemctl list-dependencies [target]'.

netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off

https://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/rhel-centos-redhat-7-list-runing-services/