Default aplikasi dan konfigurasi yang perlu dilakukan saat instalasi CentOS
Pengaturan IP Address
1 |
nmtui |
Selinux
Disable selinux untuk sementara
1 |
setenforce 0 |
Disable selinux permanent
1 2 3 |
nano /etc/selinux/config SELINUX=disabled |
Install package yang dibutuhkan
Install epel-release
1 |
yum install epel-release yum-utils |
CentOS 7 : Install net-tools agar dapat menjalankan perintah netstat
1 |
yum install net-tools nano |
Install NTP
Centos 7
1 |
yum install ntp |
Centos 8
1 |
yum install chrony |
Install web server http dan https
1 |
yum install httpd mod_ssl |
Allow service di firewall-cmd
1 2 3 4 |
firewall-cmd --add-service=http --permanent firewall-cmd --add-service=https --permanent firewall-cmd --add-service=ntp --permanent firewall-cmd --add-service=snmpd --permanent |
Package lain yang dibutuhkan
- htop
- bmon
- mc
- wget
- curl
- screen
- glances
Monitoring
- Zabbix
- SNMP
- Icinga
- Nagios
Modifikasi Port default SSH
1 2 3 |
nano /etc/ssh/sshd_config Port 9922 |
Konfigurasi php untuk keperluan tertentu
1 2 3 4 5 6 7 8 9 10 |
nano /etc/php.ini max_execution_time = 600 post_max_size = 150M upload_max_filesize = 150M systemctl restart httpd //jika menggunakan fpm systemctl restart php7.3-fpm |
Konfigurasi MySQL untuk keperluan tertentu
1 2 3 4 5 6 7 8 |
nano /etc/my.cnf bind-address=0.0.0.0 sql_mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" port=9906 //opsional max_allowed_packet=50M |
Was this helpful?
0 / 0