Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. sudo su
  2.  
  3. yum install net-tools
  4.  
  5. //Habilitar Apache Web Server
  6. yum -y install httpd
  7. systemctl start httpd
  8. systemctl enable httpd
  9.  
  10. //Habilitar el puerto 80 para que sea accesible por las máquinas
  11. firewall-cmd --zone=public --add-port=80/tcp --permanent
  12. firewall-cmd --reload
  13.  
  14. //Mariadb
  15. yum -y install mariadb-server
  16. systemctl start mariadb
  17. systemctl enable mariadb
  18. mysql -u root
  19. use mysql;
  20. update user set password=PASSWORD("root") WERE USER='root';
  21. flush privileges;
  22. quit;
  23.  
  24. //Crear repositorio para instalar pandora
  25. vi /etc/yum.repos.d/pandorafms.repo
  26.  
  27. [artica_pandorafms]
  28. name=CentOS6 - PandoraFMS official repo
  29. baseurl=http://firefly.artica.es/centos7
  30. gpgcheck=0
  31. enabled=1
  32.  
  33. //Agregar repositorio EPEL
  34. vi /etc/yum.repos.d/CentOS-Base.repo
  35.  
  36. [EPEL]
  37. name=EPEL
  38. baseurl=http://dl.fedoraproject.org/pub/epel/6/$basearch/
  39. enabled = 1
  40. gpgcheck = 0
  41.  
  42. //otro error?
  43. http://dl.fedoraproject.org/pub/epel/7/x86_64/
  44.  
  45. //Actualizar el cache
  46. yum makecache
  47.  
  48. //Instalar la consola de pandora y el servidor
  49. yum -y install pandorafms_console pandorafms_server
  50.  
  51. //Configurar SELinux
  52. yum install -y policycoreutils-python
  53. semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/pandora_console/include'
  54. semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/pandora_console/attachment'
  55. restorecon '/var/www/html/pandora_console/include'
  56. restorecon '/var/www/html/pandora_console/attachment'
  57.  
  58. //Abrir el asistente en la web
  59. http://DIRECCIONIP/pandora_console/install.php
  60.  
  61. //Quitar el instalador
  62. rm -rf /var/www/html/pandora_console/install.php
  63.  
  64. //Iniciar los servidores de pandora
  65. systemctl start pandora_server
  66.  
  67. //Logearse en el navegador usando las siguientes credenciales
  68. user:admin
  69. pass:pandora
  70.  
  71. 192.168.1.0/24
  72.  
  73. //Errores
  74.  
  75. Error = "Error creating database" en la pag de pandora
  76.  
  77. Solucion= checkear datos (nombre del usuario, pass del usuario (same as mariadb)) en /etc/pandora/pandora_server.conf
  78.  
  79. Error = Error todos los servidores caidos en la tactical view
  80.  
  81. Solucion= systemctl start/restart pandora_server (/etc/init.d/)
  82.  
  83. Error = Error al cargar la pagina del pandora
  84.  
  85. Solucion= borrar caché, instalar version 5.6 de php
  86.  
  87. Error = Error con yum makecache
  88.  
  89. Solucion= dhclient
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement