Difference between revisions of "Afinando centos 7"
From Pandora FMS Wiki
(One intermediate revision by the same user not shown) | |||
Line 24: | Line 24: | ||
:: mysql_secure_installation | :: mysql_secure_installation | ||
:: systemctl enable mariadb.service | :: systemctl enable mariadb.service | ||
− | |||
− | |||
:: yum install php php-mysql | :: yum install php php-mysql | ||
− | |||
− | |||
:: systemctl restart httpd.service | :: systemctl restart httpd.service | ||
* Quitar el private tmp del systemd en apache | * Quitar el private tmp del systemd en apache | ||
:: sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/httpd.service | :: sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/httpd.service | ||
+ | |||
+ | {{Tip|Esta documentación se ha incluido en la documentación oficial de instalación en Centos (Oct/2017) }} | ||
[[Category:Guidelines]] | [[Category:Guidelines]] |
Latest revision as of 12:45, 6 October 2017
CentOS 7 es una buena distribución de Linux pero tiene sus pequeñas cosas que en este articulo tratamos para instalar un Pandora sin muchos problemas.
- CentOS 7 no instala ifconfig, para instalarlo:
- yum install net-tools
- CentOS tiene un firewall muy agresivo, para deshabilitarlo:
- systemctl disable firewalld
- systemctl stop firewalld
- CentOS 7 tiene también SELinux activado por defecto, para deshabilitarlo:
- sestatus
- sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config
- shutdown -r now
- sestatus
- Y para poner en funcionamiento el entorno LAMP:
- yum install httpd
- systemctl start httpd.service
- systemctl enable httpd.service
- yum install mariadb-server mariadb
- systemctl start mariadb
- mysql_secure_installation
- systemctl enable mariadb.service
- yum install php php-mysql
- systemctl restart httpd.service
- Quitar el private tmp del systemd en apache
- sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/httpd.service