![]() ![]() If you want to change the configuration or use different configuration for the sync_gateway to use then update sync_gateway.json file at above mentioned location.In this tutorial, we will show you how to install Couchbase on Ubuntu 22.04 LTS. You can see the default configuration file, data (for in-memory walrus DB) and logs from sync_gateway activities by navigating to following location on your machine: cd /home/sync_gateway/ When Sync Gateway starts if no configuration is provided it would pickup default configuration. This is by default available on following URL: or IPAddress]:4985/mydb (where mydb is sample database)īy default sync gateway will run on localhost only so it would not be accessible from public address / port. Sync Gateway Admin API (Which can be used by the admin or your server application for authentication / authorization and other administrative tasks. This is by default available on following URL: or IPAddress]:4984/mydb (where mydb is sample database) Sync Gateway Public API (Which will be consumed by clients via REST or by Couchbase Lite - Sync mechanism for push / pull replication). Step: Sync Gateway component when running provides two API: Step: You can first time setup your Couchbase Server by opening following URL in your browser: or IPAddress]:8091/ Note: Sync Gateway is installed using following script for reference To start and stop Couchbase Sync Gateway: sudo service sync_gateway start To start and stop Couchbase Server: sudo service couchbase-server start These are also available to be referenced as service to control. Once above two components are install successfully, they will start running automatically and will start on machine start. Install Couchbase Sync Gateway Component: sudo dpkg -i couchbase-sync-gateway-community_1.3.1-16_x86_64.deb ![]() Install Couchbase Server: sudo dpkg -i couchbase-server-community_4.1.0-ubuntu14.04_b Subprocess dpkg-deb -control returned error exit status 2Įrrors were encountered while processing:Ĭouchbase-sync-gateway-community_1.3.1-16_x86_64.deb If you are not using correct links you may end up getting an error while installing similar to the following: dpkg-deb: error: 'couchbase-sync-gateway-community_1.3.1-16_x86_64.deb' is not a debian format archiveĭpkg: error processing archive couchbase-sync-gateway-community_1.3.1-16_x86_64.deb (-install): Note: I am using community edition but same can used for Enterprise edition also, only download links must be changed.ĭownload Couchbase Server (Release at the time of writing: v4.1.0): wget ĭownload Couchbase Sync Gateway Component (Release at the time of writing: v1.3.1) wget Step: Next thing you need to do is download Couchbase Server and Sync Gateway Once you have a Ubuntu machine spawned - log into that machine via SSH, make sure you have all the updates installed (though not a compulsory thing). You can spin up a Ubuntu machine on Amazon Web Service, Microsoft Azure or any other hosting provider of your choice.ĪWS also provides a ready made package for the same in AWS marketplace you can use. But it is not restricted to any hosting provider. Going forward we are going to setup the two server components from the above list on Ubuntu machine (Ubuntu 14.04 at the time of writing).įor the sake of writing, I have used droplet from Digital Ocean. ![]() Couchbase Server (NoSQL database server).Couchbase Sync Gateway (Server component to synchronize data between the device and server).Couchbase Lite (Embedded NoSQL database). ![]() This stack is named Couchbase Mobile and consist of three components: To start using Couchbase solution as data store for your mobile application you need to setup up couple of things. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |