Advertisement
thesuhu

Centos 7

Feb 19th, 2021 (edited)
1,295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. # lihat zone port
  2. sudo firewall-cmd --get-active-zones
  3.  
  4. # add port tambahkan ke zone sesuai pilihan
  5. sudo firewall-cmd --zone=public --permanent --add-port=30069/tcp
  6. sudo firewall-cmd --reload
  7.  
  8. # list port
  9. sudo firewall-cmd --list-ports
  10. sudo firewall-cmd --list-all
  11.  
  12. # check port is running
  13. netstat -tulpn | grep :1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement