All posts in Linux

Linux nén và giải nén file

Compress Issue the Command: # tar cvzf backup.tar.gz /var/www Where: c – create backup v – verbose output z – compress in gzip f – backup file name The backup will be created in your current working directory. Use ls command to list it   Uncompress $ tar xvzf backup.tar.gz . . . Read more

Setup UFW on Centos (Uncomplicated FireWall)

How to setup UFW First, ensure you’ve enabled the EPEL repo. Install the UFW package using yum: [user@server] sudo yum -y install ufw Check it’s installed successfully: [user@server] sudo ufw status Which should show ‘Status: inactive’ In a basic firewall, denying all incoming traffic and allowing outgoing traffic is a good . . . Read more

Install NVM CentOS

Step #1: Install NVM (Node Version Manager) Use the following curl command to kick-off the install script: curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash At the time of publication, NVM v0.25.0 was the most recent version available. You should check the GitHub project page for the latest release of NVM, and adjust the . . . Read more

Cài letsencrypt trên nginx

Update: Using Free Let’s Encrypt SSL/TLS Certificates with NGINX Prerequisites Before starting with Let’s Encrypt, you need to: Have NGINX or NGINX Plus installed. Own or control the registered domain name for the certificate. If you don’t have a registered domain name, you can use a domain name registrar, such as GoDaddy or dnsexit. Create a DNS record that . . . Read more