Categories AWS

[AWS] Create a static website with a registered domain

Lưu ý: truy cập vào subdomain vẫn qua http nên không an toàn, không truy cập với / (segments) được. Để sửa lỗi này có 2 cách: Điền index.html vào error.html hoạt động hiệu quả với angular mà không thấy lỗi. Thêm redirection rules: Chưa test. Related posts:…

Read More
Categories Linux

[Linux] Useful Commands in Shell [Vi]

Root user thường có #, normal user thường có $. Thông tin của user ở /etc/passwd Quit vim không lưu bằng :q!, lưu xong quit :wq Để search file theo một từ khóa: Grep cũng search được directory recursively: Có thể dùng printf để in ra formatted text:…

Read More
Categories Linux

[Linux] Useful Commands in Shell

To make bash script, create a file with extension .sh and add the code: to the file. Example: To run it: Note: Just enter FILE_NAME.sh is wrong. Related posts: [Linux] Useful Commands in Shell [Vi] [Linux] – Copy and paste in Vim

Read More
Categories AWS

[AWS Lightsail] – SSH to your instance

You can ssh to your instance with filezilla with this tutorials:Transfer files securely to Lightsail Linux instances with SFTP You can also connect to your instance using command prompt. Go into the directory where your private key file locates and enter this command to the window: Related posts:…

Read More