Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo_scale

example mongo scale using docker-compose replica set shard and shell

Hướng dẫn khởi tạo mongo scale.

  1. Lệnh khởi tạo tự động
sudo ./up.sh
  1. Lệnh dọn dẹp tự động
sudo ./down.sh
  1. Có thể thêm shard-02 shard-03 dựa trên shard-01, chỉnh sửa lại up.sh để thêm shard-02 shard-03

  2. Chỉnh sửa U và P trong .env để thay đổi xác thực đăng nhập

Hướng dẫn đẩy mã lên github bằng terminal của visual studio code.

sudo rm -r .git
git init
git add .
git commit -m "first commit" 
git branch -M main
git remote add origin https://github.com/kendbad/mongo_scale.git 
git push -u origin main
  1. Gỡ bỏ thư mục .git nếu cần: sudo rm -r .git
  2. Khởi tạo: git init
  3. Thêm tất cả ở thư mục hiện tại: git add .
  4. Ghi chú thay đổi: git commit -m "first commit"
  5. Đổi tên nhánh hiện tại sang main: git branch -M main
  6. Kết nối với repo đã tạo trên github: git remote add origin </liên kết đến repo/>
  7. Đẩy mã lên github: git push -u origin main
  8. Lỗi khi push do tệp README.md không nên chọn tạo README khi khởi tạo repo trên github, hoặc xóa README.md trong thư mục local chứa mã nguồn.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages