Year 2024
Note about Docker
[Linux] – Working with arrays in bash
Khởi tạo array: Khởi tạo với index: Gán giá trị: Related posts: [Linux] Useful Commands in Shell [Vi] [AWS, Bitnami Apache Server Stack] – Assign a subdomain to a web service hosted on VPS and exposed through the port 8080
Read More[AWS, Bitnami Apache Server Stack] – Assign a subdomain to a web service hosted on VPS and exposed through the port 8080
Ở đây mình sẽ gán subdomain cho jenkins admin site chạy trong container và expose ra cổng 8080. Mình đã có thể truy cập bằng địa static ip hoặc domain và port bằng public internet. Xong. Giờ bạn có thể truy cập webapp bằng subdomain. Chúc các bạn…
Read More[Linux] – Copy and paste in Vim
Để copy trong vim: Chúc các bạn thành công! Related posts: [Linux] Useful Commands in Shell [Vi] Hướng dẫn gửi Email bằng Spring Boot
Read More[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[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[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[Docker] – Important commands and scripts to work with Docker
Script to create an image from an other image (must be saved in Dockerfile), for example create an image from an jdk image that contains your spring boot apps. Related posts: Hướng dẫn gửi Email bằng Spring Boot [AWS, Bitnami Apache Server Stack] – Assign a subdomain to…
Read More[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