{"id":1674,"date":"2020-04-30T06:00:15","date_gmt":"2020-04-30T13:00:15","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/"},"modified":"2020-04-30T06:00:15","modified_gmt":"2020-04-30T13:00:15","slug":"best-practices-for-running-and-managing-couchbase-server-as-non-root","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/","title":{"rendered":"Best Practices for Operating Couchbase Server as Non-Root"},"content":{"rendered":"\n<p><span>With Couchbase Server 6.5.1. we now standardize the non-root install and upgrade for rpm packages. This will now allow you to easily install, upgrade and maintain Couchbase Server as non-root.\u00a0<\/span><\/p>\n\n\n\n<p><span>The purpose of this blog is not to replace our excellent <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/install\/rhel-suse-install-intro.html\"><span>Couchbase documentation<\/span><\/a><span>, but rather, to reiterate some <\/span><b>best practices<\/b><span>\u00a0 for a successful installation. This blog is divided into 2 parts. <\/span><\/p>\n\n\n\n<p><span><strong>Part 1<\/strong>: Install Couchbase Server 6.5.1 as non-root.<br>\n<\/span><strong>Part 2<\/strong>: Upgrade a non-root installed Couchbase Server 6.0.4 to version 6.5.1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>What\u2019s new in Couchbase Server 6.5.1\u00a0<\/span><\/h3>\n\n\n\n<p><b>Install<\/b><span>: A new installer <\/span><a href=\"https:\/\/packages.couchbase.com\/cb-non-package-installer\/cb-non-package-installer\"><span>cb-non-package-installer<\/span><\/a><span>, is used to install the Couchbase server as opposed to using rpm2cpio and reloc.sh.<br>\n<\/span><b>Status<\/b><span>: Now you can check the status of the Couchbase server with a new command, <\/span><b>couchbase-server &#8211;status<br>\n<\/b><b>Upgrade<\/b><span>: The <\/span><a href=\"https:\/\/packages.couchbase.com\/cb-non-package-installer\/cb-non-package-installer\"><span>cb-non-package-installer<\/span><\/a><span> is used to upgrade the Couchbase server from the previous version. All <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/install\/upgrade-strategies.html\"><span>upgrade options<\/span><\/a><span>, including Rolling Online Upgrade with Graceful Failover and Delta Recovery are supported.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>Part 1: New install<\/span><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Plan<\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span>Deploy a 3 node Couchbase 6.5.1 cluster as non-root<\/span><\/li>\n\n\n<li><span>The user will be: ec2-user<\/span><\/li>\n\n\n<li><span>The Server will be deployed in: \/home\/ec2-user\/cb-server<\/span><\/li>\n\n\n<li><span>The Data will be in: \/home\/ec2-user\/cb-data<\/span><\/li>\n\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Pre-requisites<\/span><\/h3>\n\n\n\n<p><span>There are a few <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/troubleshoot\/common-errors.html\"><span>Common Errors<\/span><\/a><span> which you may run into when running Couchbase server as non-root and the linked document describes them. For example: <\/span><b>ulimits<\/b><span>. <em>Ulimit<\/em> is the number of open file descriptors per process. The standard root installer changes these during installation, but for non-root, you have to take care of these yourself. So, let me highlight a few here since these are very important.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Disable Transparent Huge Pages (THP)<\/span><\/h4>\n\n\n\n<p><span>Transparent huge pages (THP) is a memory management system that is enabled by default in most Linux operating systems. THP must be disabled in order for Couchbase Server to function correctly on Linux. Please follow the <a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/install\/thp-disable.html\">documentation<\/a>\u00a0and ensure that THP has been disabled.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Configure Kernel Swappiness<\/span><\/h4>\n\n\n\n<p><span>On Linux, the kernel\u2019s swappiness level indicates how likely the system is to swap pages out of physical memory based on RAM usage. Swappiness should be set to 1 or 0 on most Linux systems to achieve optimal Couchbase Server performance. Please follow the <a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/install\/install-swap-space.html\">documentation<\/a>\u00a0and ensure that Swappiness has been set as per recommendation.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Check the ulimits<\/span><\/h4>\n\n\n\n<p><span>A quick check of ulimits for the ec2-user. These are the minimum recommended values. Make these permanent.<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ ulimit -n<br \/>\n70000<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ ulimit -c<br \/>\nunlimited<br \/>\n[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Install required programs<\/span><\/h4>\n\n\n\n<p><span>We need python2, bzip2 and perl. So, make sure that these are all available<\/span><\/p>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ python2 -V<br \/>\nPython 2.7.16<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ bzip2 -V<br \/>\nbzip2, a block-sorting file compressor; Version 1.0.6, 6-Sept-2010.<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ perl -v<br \/>\nThis is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi<br \/>\n(with 51 registered patches, see perl -V for more detail)[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Download the packages<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ wget https:\/\/packages.couchbase.com\/releases\/6.5.1\/couchbase-server-enterprise-6.5.1-centos8.x86_64.rpm<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ wget https:\/\/packages.couchbase.com\/cb-non-package-installer\/cb-non-package-installer[\/crayon]<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Install Couchbase Server as non-root<\/span><\/h3>\n\n\n\n<p><span>SSH into the first node to install.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 1: Create the directories for the Server and Data<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ ls -l<br \/>\ntotal 346696<br \/>\ndrwxrwx&#8212;. 3 ec2-user ec2-user        21 Apr 24 18:03 cb-data<br \/>\ndrwxrwxr-x. 2 ec2-user ec2-user         6 Apr 24 18:03 cb-server<br \/>\n[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 2: Install the Couchbase Server<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ .\/cb-non-package-installer &#8211;install &#8211;install-location \/home\/ec2-user\/cb-server &#8211;package couchbase-server-enterprise-6.5.1-centos8.x86_64.rpm<br \/>\nSuccessfully installed[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 3: Start the\u00a0<\/span><span>Couchbase S<\/span><span>erver<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;]\/home\/ec2-user\/cb-server\/opt\/couchbase\/bin\/couchbase-server &#8212; -noinput -detached<br \/>\nThe maximum number of processes for the couchbase user is set too low (4096).<br \/>\nIt must be at least 10000.<br \/>\nNormally this can be increased by adding the following lines to<br \/>\n\/etc\/security\/limits.conf:<\/p>\n<p>couchbase    &lt;value&gt;<br \/>\ncouchbase    &lt;value&gt;<\/p>\n<p>Where &lt;value&gt; is greater than 10000. The procedure may be totally<br \/>\ndifferent if you&#8217;re running so called &#8220;non-root\/non-sudo install&#8221; or<br \/>\nif you&#8217;ve built Couchbase Server from source.[\/crayon]<\/p>\n\n\n\n<p>You can ignore that message since we have already set the ulimits for ec2-user.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 4: Check the status<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ \/home\/ec2-user\/cb-server\/opt\/couchbase\/bin\/couchbase-server &#8211;status<br \/>\nCouchbase Server is running[\/crayon]<\/p>\n\n\n\n<p><b>Repeat above steps for the other 2 nodes<\/b><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Setup the Couchbase Cluster<\/span><\/h3>\n\n\n\n<p><span>Access: <\/span><a href=\"https:\/\/ec2-3-101-69-76.us-west-1.compute.amazonaws.com:8091\/\"><span>https:\/\/xxxx.compute.amazonaws.com:8091<\/span><\/a><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8501\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-1-251x300-1.png\" alt=\"\" width=\"543\" height=\"649\"><br>\n<span>Note the changes to the various Data Paths.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Check the 1 node cluster<\/span><\/h3>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8502\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-2-300x114-1.png\" alt=\"\" width=\"882\" height=\"335\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Add remaining nodes<\/span><\/h3>\n\n\n\n<p><span>Click on <\/span><b>ADD SERVER<\/b><span> from the above screen, add the other 2 nodes and <\/span><b>Rebalance<\/b><span>. When adding, do check the <\/span><b>custom data paths<\/b><span> in the Add Server screen.<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8503\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-3-300x57-1.png\" alt=\"\" width=\"884\" height=\"168\"><span>Cluster is now up and running<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>Part 2: Upgrade<\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Pre-upgrade<\/span><\/h3>\n\n\n\n<p><span>I start with a 3 node Couchbase Server 6.0.4 installed as ec2-user.<br>\n<\/span><span>The installation home is: \/home\/ec2-user\/cb-server<br>\n<\/span><span>The data directory is: \/home\/ec2-user\/cb-data<\/span><\/p>\n\n\n\n<p><span>Lets check the Couchbase Server status by logging into Couchbase 6.0.4 Admin UI and make sure they are all Green.<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8504\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-4-300x120-1.png\" alt=\"\" width=\"890\" height=\"356\"><span>Next, a quick check of the buckets shows:<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8505\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-5-300x53-1.png\" alt=\"\" width=\"872\" height=\"154\"><br>\n<span>Now, let\u2019s upgrade this cluster to Couchbase 6.5.1.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Pre-requisites<\/span><\/h3>\n\n\n\n<p><span>This is the same as described in Part 1 of this blog. Please make sure of meeting these pre-requisites even if these have not been done when you installed Couchbase Server 6.0.4. The upgrade process is a good opportunity to do this.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Upgrade Process<\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 1: Gracefully Failover a node<\/span><\/h4>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8506\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-6-300x128-1.png\" alt=\"\" width=\"598\" height=\"255\"><\/p>\n\n\n\n<p><b>Notes<\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span>Do <\/span><b>not<\/b><span> Rebalance yet<\/span><\/li>\n\n\n<li><span>The node is Failed over and not taking any traffic, but is still part of the cluster<\/span><\/li>\n\n<\/ul>\n\n\n\n<p>A quick check of the node<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8507\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-7-300x143-1.png\" alt=\"\" width=\"852\" height=\"406\"><\/p>\n\n\n\n<p><span>SSH into the failed over node and perform these steps.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 2: Stop the server<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-25-239 ~]$ \/home\/ec2-user\/cb-server\/opt\/couchbase\/bin\/couchbase-server -k[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 3: Upgrade the server<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-25-239 ~]$ .\/cb-non-package-installer &#8211;upgrade &#8211;install-location<br \/>\n\/home\/ec2-user\/cb-server &#8211;package couchbase-server-enterprise-6.5.1-centos8.x86_64.rpm<br \/>\nRunning cbupgrade this could take some time<br \/>\nUpgrade has completed successfully[\/crayon]<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Step 4: Start the server<\/span><\/h4>\n\n\n<p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-25-239 ~]$ \/home\/ec2-user\/cb-server\/opt\/couchbase\/bin\/couchbase-server &#8212; -noinput -detached[\/crayon]<\/p>\n\n\n\n<p><b>Tip<\/b><span>: In any of the steps, you can check the server status by:<\/span><\/p>\n\n\n\n<p><p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ python2 -V<br \/>\nPython 2.7.16<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ bzip2 -V<br \/>\nbzip2, a block-sorting file compressor; Version 1.0.6, 6-Sept-2010.<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ perl -v<br \/>\nThis is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi<br \/>\n(with 51 registered patches, see perl -V for more detail)[\/crayon]<\/p>\n0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Check the server version in the UI, post upgrade<\/span><\/h4>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8509\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-7-1-300x143-1.png\" alt=\"\" width=\"816\" height=\"389\"><br>\nNote the change in the Server Version.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Add the node back and Rebalance<\/span><\/h4>\n\n\n\n<p><span>Note: We will be performing <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/install\/upgrade-strategies.html#online-upgrade\"><span>Rolling Online Upgrade<\/span><\/a><span> with <\/span><span>Graceful Failover and Delta Recovery.<\/span><span>\u00a0<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8508\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-8-300x83-1.png\" alt=\"\" width=\"817\" height=\"226\"><br>\n<span>Click the Add Back: <\/span><b>Delta Recovery<\/b><span> button.<\/span><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span>Optional: Check the Log<\/span><\/h4>\n\n\n\n<p><p>[crayon theme=&#8221;dark-terminal&#8221; toolbar=&#8221;1&#8243; show-lang=&#8221;2&#8243; show-plain=&#8221;3&#8243; lang=&#8221;zsh&#8221; decode=&#8221;true&#8221;][ec2-user@ip-172-31-22-131 ~]$ python2 -V<br \/>\nPython 2.7.16<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ bzip2 -V<br \/>\nbzip2, a block-sorting file compressor; Version 1.0.6, 6-Sept-2010.<\/p>\n<p>[ec2-user@ip-172-31-22-131 ~]$ perl -v<br \/>\nThis is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi<br \/>\n(with 51 registered patches, see perl -V for more detail)[\/crayon]<\/p>\n1<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Complete full upgrade<\/span><\/h3>\n\n\n\n<p><span>Repeat the same process for all 3 nodes.<\/span><span>To Failover the first node, which you were logging into the Admin UI, you will need to access the Admin UI from a upgraded node. The look and feel has been made better, but the functionality is the same.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8510\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-9-300x133-1.png\" alt=\"\" width=\"846\" height=\"375\"><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Conclusion<\/span><\/h3>\n\n\n\n<p><span>After the completion of the upgrade process, check the Dashboard for the Server version:<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8511\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Blog3-10-300x13-1.png\" alt=\"\" width=\"854\" height=\"37\"><br>\n<span>The upgrade is complete.<\/span><\/p>\n\n\n\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Couchbase Server 6.5.1. we now standardize the non-root install and upgrade for rpm packages. This will now allow you to easily install, upgrade and maintain Couchbase Server as non-root.\u00a0 The purpose of this blog is not to replace our excellent Couchbase documentation, but rather, to reiterate some best practices\u00a0 for a successful installation. This [&hellip;]<\/p>\n","protected":false},"author":57747,"featured_media":1673,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[136,54],"tags":[231,405],"ppma_author":[406],"class_list":["post-1674","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-best-practices-and-tutorials","category-couchbase-server","tag-tutorial","tag-upgrades"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Best Practices for Operating Couchbase Server as Non-Root<\/title>\n<meta name=\"description\" content=\"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Practices for Operating Couchbase Server as Non-Root\" \/>\n<meta property=\"og:description\" content=\"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-30T13:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prasad Doddi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Doddi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/\"},\"author\":{\"name\":\"Prasad Doddi\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/7870a85b21341a1cdbdd737ba6e6e077\"},\"headline\":\"Best Practices for Operating Couchbase Server as Non-Root\",\"datePublished\":\"2020-04-30T13:00:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/\"},\"wordCount\":1350,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/Tools.jpg\",\"keywords\":[\"tutorial\",\"upgrades\"],\"articleSection\":[\"Best Practices and Tutorials\",\"Couchbase Server\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/\",\"name\":\"Best Practices for Operating Couchbase Server as Non-Root\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/Tools.jpg\",\"datePublished\":\"2020-04-30T13:00:15+00:00\",\"description\":\"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/Tools.jpg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/Tools.jpg\",\"width\":1500,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/best-practices-for-running-and-managing-couchbase-server-as-non-root\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best Practices for Operating Couchbase Server as Non-Root\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/7870a85b21341a1cdbdd737ba6e6e077\",\"name\":\"Prasad Doddi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=geefad0ed7be820b285621aa4d67f7578\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=g\",\"caption\":\"Prasad Doddi\"},\"description\":\"Prasad is a Senior Product Manager in Couchbase Cloud. Prior to Couchbase, he worked at IBM in various departments including Development, QA, Support and Technical Sales. Prasad holds a master\u2019s degree in Chem. Engg. from Clarkson University, NY.\",\"sameAs\":[\"www.linkedin.com\\\/in\\\/krishna-prasad-doddi\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/pt\\\/author\\\/prasad-doddi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Best Practices for Operating Couchbase Server as Non-Root","description":"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/","og_locale":"pt_BR","og_type":"article","og_title":"Best Practices for Operating Couchbase Server as Non-Root","og_description":"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/","og_site_name":"The Couchbase Blog","article_published_time":"2020-04-30T13:00:15+00:00","og_image":[{"width":1500,"height":1000,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg","type":"image\/jpeg"}],"author":"Prasad Doddi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prasad Doddi","Est. reading time":"7 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/"},"author":{"name":"Prasad Doddi","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7870a85b21341a1cdbdd737ba6e6e077"},"headline":"Best Practices for Operating Couchbase Server as Non-Root","datePublished":"2020-04-30T13:00:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/"},"wordCount":1350,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg","keywords":["tutorial","upgrades"],"articleSection":["Best Practices and Tutorials","Couchbase Server"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/","url":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/","name":"Best Practices for Operating Couchbase Server as Non-Root","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg","datePublished":"2020-04-30T13:00:15+00:00","description":"With Couchbase Server 6.5.1 we now standardize non-root install and upgrade for rpm packages. Optimize your infrastructure with Couchbase.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/Tools.jpg","width":1500,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/best-practices-for-running-and-managing-couchbase-server-as-non-root\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Best Practices for Operating Couchbase Server as Non-Root"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7870a85b21341a1cdbdd737ba6e6e077","name":"Prasad Doddi","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=geefad0ed7be820b285621aa4d67f7578","url":"https:\/\/secure.gravatar.com\/avatar\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a9ce547feba43afcbcf1425142725c663678810966eaa0ddc7d38702e647ee63?s=96&d=mm&r=g","caption":"Prasad Doddi"},"description":"Prasad is a Senior Product Manager in Couchbase Cloud. Prior to Couchbase, he worked at IBM in various departments including Development, QA, Support and Technical Sales. Prasad holds a master\u2019s degree in Chem. Engg. from Clarkson University, NY.","sameAs":["www.linkedin.com\/in\/krishna-prasad-doddi"],"url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/prasad-doddi\/"}]}},"acf":[],"authors":[{"term_id":406,"user_id":57747,"is_guest":0,"slug":"prasad-doddi","display_name":"Prasad Doddi","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/57747"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=1674"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1674\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/1673"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=1674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=1674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=1674"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=1674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}