Frequently Asked Question
- Add port firewalld
# firewall-cmd --add-port=1234/tcp --permanent
# firewall-cmd --reload
- check port open
# firewall-cmd --list-all
-restart apache webuzo :
/usr/local/apps/apache2/bin/httpd/ -k restart
-setting ssh
#nano /etc/ssh/sshd_config
------------------------------------------
Untuk melihat port yang Listening/Terbuka di Linux, kita bisa mengeceknya dengan bantuan netstat, perintahnya :
netstat --listen
untuk melihat proses yang menggunakan port tertentu gunakan perintah, sebagai contoh kita akan melihat aplikasi apa yang menggunakan port 110
netstat -tunlp | grep ':110'
----------------------------
edit httpd - centos 7
nano /etc/httpd/conf/httpd.conf
-Set time zone centos 7
timedatectl set-timezone Asia/Jakarta
timedatectl
==========================
mariadb
SET PASSWORD FOR 'techonthenet'@'localhost' = PASSWORD('newpassword');
-----------------------------------------------------------------------------------
Open port Firewall CSf - Webuzo
nano /etc/csf/csf.conf
Add the required ports to the csf.conf file
# Allow incoming TCP ports
TCP_IN = “20,21,22,25,26,53,80,110,143,443,465,587,993,995,2077”
# Allow outgoing TCP ports
TCP_OUT = “20,21,22,25,26,37,43,53,80,110,113,443,465,873,2087”
4) Restart the CSF for the changes to take effect. Run the below command to restart the CSF
# Restart
csf -r
--------------------------------------------------------------------------------