Install ERA 6 Server di Centos 7

You are here:

Tambahkan repo EPEL di centos 7

yum install epel-release

Tambahkan repository MySQL

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Update OS

yum update

Install Dependencies

yum install mysql-community-server mysql-connector-odbc xorg-x11-server-Xvfb cifs-utils krb5-workstation samba-winbind-clients openldap-clients net-snmp-utils policycoreutils-devel java-1.8.0-openjdk tomcat qt4-webkit links

Start MySQL

systemctl start mysql

Buat root password MySQL yaitu eraadmin

mysql_secure_installation

Edit Konfigurasi MySQL

vi /etc/my.cnf

Tambahkan konfigurasi berikut di bawah [mysqld]

# ESET Requirement
max_allowed_packet = 500M
innodb_log_file_size = 100M
innodb_log_files_in_group = 4

Restart MySQL

systemctl restart mysql

Set MySQL agar start saat OS Restart

systemctl enable mysqld

Kopi file ERA Console

cp era.war /var/lib/tomcat/webapps/

Restart Service Tomcat

systemctl restart tomcat

Set Tomcat agar start saat OS Restart

systemctl enable tomcat

Ubah permission installer agar bisa di install

chmod +x Server-Linux-x86_64.sh
chmod +x Agent-Linux-x86_64.sh
chmod +x RDSensor-Linux-x86_64.sh

Install ERA Server

./Server-Linux-x86_64.sh --skip-license --db-driver="MySQL ODBC 5.3 Unicode Driver" --db-hostname=127.0.0.1 --db-port=3306 --db-admin-username=root --db-admin-password=eraadmin --server-root-password=eraadmin --db-user-username=root --db-user-password=eraadmin --cert-hostname="*"

# Coba Akses ERA Webconsole

http://IP_ADDRES_ATAU_HOSTNAME:8080/era

Export Certificate Agent, Proxy, dan Public Certificate

http://help.eset.com/era_admin/65/en-US/index.html?export_certificate.htm

http://help.eset.com/era_admin/65/en-US/export_a_public_key.htm

Install Agent

./Agent-Linux-x86_64.sh --skip-license --hostname=localhost --port=2222 --webconsole-hostname=localhost --webconsole-port=2223 --webconsole-user=administrator --webconsole-password=eraadmin --cert-auto-confirm

Install RDSensor

./RDSensor-Linux-x86_64.sh --skip-license

Selanjutnya adalah install Apache untuk update ERA dan user

https://kb.prosperita.co.id/?epkb_post_type_1=install-apache-http-proxy-di-centos-7

Open Port Firewall langkah ini bisa di skip jika tidak terinstall firewalld

firewall-cmd --zone=public --add-port=2222/tcp --permanent
firewall-cmd --zone=public --add-port=2223/tcp --permanent
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=139/tcp --permanent
firewall-cmd --zone=public --add-port=445/tcp --permanent
firewall-cmd --zone=public --add-port=137/udp --permanent
firewall-cmd --zone=public --add-port=138/udp --permanent
firewall-cmd --zone=public --add-port=1237/udp --permanent
firewall-cmd --zone=public --add-port=1238/udp --permanent

Reload firewall

firewall-cmd --reload

Enable startup firewall

systemctl enable firewalld