easywebhub / tasks

List of tasks for EasyWeb members
1 stars 4 forks source link

Setup Couchbase server #56

Closed baotnq closed 7 years ago

baotnq commented 7 years ago

VPS Info (test)

Todo

baotnq commented 7 years ago

sử dụng putty để truy cập server:

baotnq commented 7 years ago

VPS này đang mua tại vultr.com, đây là thông tin để em search khi cần thiết. Lưu ý nghe Có gì thì trao đổi, hoặc lưu các sceenshots trên đây luôn

baotnq commented 7 years ago

@leekirby6 việc này tiến triển tới đâu rồi em, còn gặp nhiều khó khăn không?

natuan62 commented 7 years ago

em đã config file config.json trong try-cb/ultis update admin và password edit http://localhost:8091 thành http://45.76.163.100:8091 Còn phần kết nối tới vps trong trình duyệt thì em không rõ cách connect như thế nào? putty máy em tự dưng dính cái lỗi này, tìm trên gg, stackoverflow mà chưa sửa được 1

baotnq commented 7 years ago

@leekirby6 cái này chắc do VPS bị gì đó không kết nối, anh đang gửi yêu cầu cho bên kia kiểm tra

baotnq commented 7 years ago

nếu đã config được http://45.76.163.100:8091, thì em chỉ cần vào link này trên browser, như firefox, chromes, đăng nhập và quản lý db này bình thường ah. khi nào server chạy lại, anh báo nghe

natuan62 commented 7 years ago

dạ

natuan62 commented 7 years ago

putty login vào lại được rồi anh à ! 2

baotnq commented 7 years ago

con server này hay bị lỗi nên anh xóa và tạo mới VPS mới,

OS: Centos 7 64bit
IP: 45.63.35.239
acc: root / $7Dk7Evk(,(1oFkA

Em cài đặt mới 1 lần nữa nghe. Lần này nếu được thì chụp step luôn

baotnq commented 7 years ago

sau khi setup xong, em cố gắng vọc Step 3 của https://www.couchbase.com/get-started-developing-nosql. Phần

natuan62 commented 7 years ago

Phần config file config.json để chạy đường dẫn 45.63.35.239:8091 để truy cập Admin Console có lẽ em nhầm hay thiếu chỗ nào đó. couchbase server.docx Còn phần truy vấn ở Step3 em cũng hiểu do trước có học môn CSDL SQL thấy cũng khá giống với noSQL :)

baotnq commented 7 years ago

@leekirby6 trong tai lieu cua em, anh chua thay phan nay, https://developer.couchbase.com/documentation/server/current/install/init-setup.html#topic12527 em coi lai co lam buoc nay chua

baotnq commented 7 years ago

@thinnv em xem thu co ho tro duoc gi khong, dua theo kinh nghiem cai lan truoc cua em

natuan62 commented 7 years ago

phần truy cập admin console sử dụng http://ip adress:8091 em vẫn chưa làm được. Để em xem kĩ lại sai mình sai ở đâu !

thinnv commented 7 years ago

Đang bị vướng chỗ nào vậy a @baotnq, theo e thấy

  1. Ip:port thì phải mở port 8091 để ở ngoài truy cập vào
  2. Trong try-cb muốn config username và pass thì phải cấu hình cho DocumentName password của nó. Nếu không thì bỏ password đi thì project try-cb connect được server
natuan62 commented 7 years ago

Em vào được rồi, cảm ơn 2 anh @thinnv @baotnq 12

baotnq commented 7 years ago

@leekirby6 làm tốt lắm em!

natuan62 commented 7 years ago

couchbase server_updated.docx Anh @thinnv giúp em cái với ! Cái thông báo "No query nodes were found on this cluster, so N1QL querying is not possible." thì phải sửa làm sao vậy anh ? Em tra google rồi nhưng không thấy nói cách giải quyết a

Tương tự với việc sử dụng command line trên centos b

baotnq commented 7 years ago

"Your cluster was set up without a query service. If it's a multi-node service, remove a node and add it back with a query service. If you only have a single machine available (say your laptop) you'll need to tear down the instance and restart (simplest way is to uninstall and reinstall) making sure to include a query service during set up. (In the UI the query service is included by default.)

As Gerald mentions, we don't support adding services to already provisioned nodes -- they can only be added via node addition."

tham khảo https://forums.couchbase.com/t/want-to-turn-on-query-services-on-server-to-run-n1ql/11275/3

@leekirby6 anh thấy em đang cài 4.6, nhưng trong mô tả bên trên anh note là chỉ cần "version: 4.5 Community" thôi. Vậy em muốn uninstall và cài 4.5 không, hay để anh reset VPS về ban đầu cho nhanh và làm lại

natuan62 commented 7 years ago

Em đã gỡ 4.6 và đang cài lại 4.5 anh a

baotnq commented 7 years ago

anh lỡ reinstall nó ra mất rồi, em chịu khó cài lại nghe.

natuan62 commented 7 years ago

Dạ tại hồi trưa em nhờ anh reset lại mà chưa thấy anh phản hồi nên em gỡ ra cài lại Nói chung là xong hết rồi anh. Đang test mấy cái query mẫu xong lost connection =)) couchbase server_updated.docx

Để em cài lại sau :)

natuan62 commented 7 years ago

Password có thay đổi gì không anh ? em dùng root|$7Dk7Evk(,(1oFkA thì bị access denied image

baotnq commented 7 years ago

pass mới: r8K%S4uDLr2GuL@* OK em, sau đó tiếp tục vọc ở https://github.com/easywebhub/training-tasks/issues/1 nghe

baotnq commented 7 years ago

việc này tới đâu rồi em, gần xong chưa

natuan62 commented 7 years ago

À, cái này xong từ hôm bữa mà anh bảo là reset lại cái vps. Em nói là em cấu hình xong hết rồi xong anh bảo là OK em, sau đó tiếp tục vọc ở easywebhub/training-tasks#1 nghe

baotnq commented 7 years ago

em cho anh thông tin để truy cập vào Couchbase thử nghe, account login. Nếu Couchbase truy cập được thì coi nhu xong phần này, làm tiếp theo tasks kia https://github.com/easywebhub/training-tasks/issues/1

natuan62 commented 7 years ago

capture nó lại bị dính cái lỗi này nữa rồi anh anh reset giúp em lại với

baotnq commented 7 years ago

cái VPS này chán quá, nên nếu vậy thì thôi, em cứ vọc các sample trong tasks kia nghe.

Anh xóa cái VPS này cho rồi, sắp tới đưa em 1 vps mới của thằng khác để em luyện tập tiếp.

baotnq commented 7 years ago

task này hoàn thành