Max Coding blog

Web

2021/06/24

Web (The content is still updating)

port

  1. Secure Shell(SSH) : 22
  2. HTTP : 80
  3. HTTPS : 443 ## Apache2
  4. Start our apache : $ sudo service apache2 start
  5. Check the state of apache : $ sudo service apache2 status
  6. Stop our apache : $ sudo service apache2 stop
  7. Restart our apache : $ sudo service apache2 restart
  8. Start the apache service at boot : $ sudo systemctl enable apache2
  9. Stop apache service at boot : $ sudo systemctl disable apache2 # Firewall
  10. Open the firewall : $ sudo ufw enable
  11. Check firewall status : $ sudo ufw status Status: active Status: inactive
  12. Default allow all of the connect pass : $ sudo ufw default allow
  13. Check incoming/outgoing status : $ sudo ufw status verbose
  14. ufw allow ssh(22 port) : $ sudo ufw allow ssh
  15. ufw allow http(80 port) : $ sudo ufw allow http
  16. Remove http connect : $ sudo ufw delete allow http/tcp # Mariadb(Mysql)
  17. Setup our Mariadb : $ sudo mysql_secure_installation
  18. Start our server : $ sudo systemctl start mariadb
  19. Check Mariadb status : $ sudo systemctl status mariadb
  20. Login database : $ mysql -u root -p ## Get in mysql database
  21. Show the database : > show databases;
  22. Get in the database : > use 'database name'
  23. Show the data : > show tables;
by CHSHS WU,ZHEN-RONG
CATALOG
  1. 1. Web (The content is still updating)
    1. 1.1. port
      1. 1.1.0.0.1. by CHSHS WU,ZHEN-RONG