Advertisement
malwarebrz

comandos

Jul 5th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo su
  2. systemctl disable firewalld
  3. systemctl stop firewalld
  4. systemctl status firewalld
  5. yum update
  6. yum install vim
  7. yum install kate
  8. kate /etc/sysconfig/selinux  
  9. *disabled
  10. shutdown -h now
  11. rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
  12. yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
  13. yum install mariadb-server
  14. service mariadb start
  15. /usr/bin/mysql_secure_installation
  16. service mariadb restart
  17. systemctl enable mariadb.service
  18. mysql -uroot -p
  19. create database zabbix character set utf8 collate utf8_bin;
  20. grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
  21.                         "BANCO"     "DB USER"                      "DB PASS"
  22. quit;
  23. cd /usr/share/doc/zabbix-server-mysql "usar o tab pra completar"
  24. zcat create.sql.gz | mysql -uroot -p zabbix
  25. kate /etc/zabbix/zabbix_server.conf
  26. " descomentar
  27. DBHost=localhost
  28. DBName=zabbix
  29. DBUser=zabbix
  30. DBPassword=zabbix
  31. "          COLOCAR O PASS AQUI, VAI ESTAR EM BRANCO
  32.  
  33. systemctl start zabbix-server
  34. kate /etc/httpd/conf.d/zabbix.conf
  35. " descomentar e atualizar
  36. php_value max_execution_time 300
  37. php_value memory_limit 128M
  38. php_value post_max_size 16M
  39. php_value upload_max_filesize 2M
  40. php_value max_input_time 300
  41. php_value always_populate_raw_post_data -1
  42. php_value date.timezone America/Belem
  43. "
  44. systemctl httpd start
  45. systemctl enable httpd.service
  46. systemctl enable mariadb.service
  47. systemctl enable zabbix-server.service
  48. systemctl enable zabbix-agent.service
  49.  
  50. "depois navega atΓ© o ip/zabbix Admin / zabbix"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement