简体   繁体   English

无法在非root用户sudo中启动couchbase服务器2.2.0

[英]can't start couchbase server 2.2.0 in non-root sudo

I an trying to install couchbase server 2.0.2 from http://www.couchbase.com/communities/python/getting-started 我试图从http://www.couchbase.com/communities/python/getting-started安装Couchbase服务器2.0.2

I have Linux mint 15. 我有Linux Mint 15。

I went to "Installing on Ubuntu as Non-Root, Non-Sudo" 我去过“在Ubuntu上以非根目录,非Sudo的方式安装”

I successfully executed: 我成功执行了:

dpkg-deb -x couchbase-server-enterprise_2.2.0_x86_64.deb $HOME

./bin/install/reloc.sh
pwd

When I tried `./bin/couchbase-server -- -noinput -detached I got the following output: 当我尝试`./bin/couchbase-server--noinput -detached时,我得到以下输出:

 ./bin/couchbase-server -- -noinput -detached

The maximum number of open files for the couchbase user is set too low. 该沙发用户的最大打开文件数设置太低。 It must be at least 10240. Normally this can be increased by adding the following lines to /etc/security/limits.conf: 它必须至少为10240。通常可以通过在/etc/security/limits.conf中添加以下几行来增加它:

couchbase soft nofile couchbase hard nofile couchbase软nofile Sofabase硬nofile

Where is greater than 10240. 其中大于10240。

mkdir: cannot create directory '/opt/couchbase': Permission denied ./bin/couchbase-server: 71: cd: can't cd to /opt/couchbase/var/lib/couchbase mkdir:无法创建目录'/ opt / couchbase':权限被拒绝./bin/couchbase-server:71:cd:无法cd到/ opt / couchbase / var / lib / couchbase

What am I doing wrong? 我究竟做错了什么?

thanks in advance 提前致谢

Here is how I installed couchbase on linux mint 13 (A virtual machine). 这是我如何在Linux Mint 13(虚拟机)上安装couchbed的方法。

Visit here to pick your flavour, 64/32bit, distro, enterprise or community http://www.couchbase.com/download 访问此处以选择您的口味,64/32位,发行版,企业或社区http://www.couchbase.com/download

Right clink on the package you want and copy the link address and then add to the commands below. 用鼠标右键单击所需的软件包,然后复制链接地址,然后将其添加到下面的命令中。 (I included the version I downloaded) (我包括了我下载的版本)

  1. sudo wget http://packages.couchbase.com/releases/2.2.0/couchbase-server-enterprise_2.2.0_x86_64.deb 须藤wget http://packages.couchbase.com/releases/2.2.0/couchbase-server-enterprise_2.2.0_x86_64.deb
  2. sudo dpkg -i couchbase-server-enterprise_2.2.0_x86_64.deb 须藤dpkg -i couchbase-server-enterprise_2.2.0_x86_64.deb
  3. sudo service couchbase-server status sudo服务ouchbase服务器状态

During instalation you might find you are missing the libssl library, if you are it'll tell you and you can just sudo apt-get install LIB_SSL_VERSION 在安装过程中,您可能会发现缺少libssl库,如果您会告诉您,则可以sudo apt-get install LIB_SSL_VERSION

Run

./bin/install/reloc.sh `pwd`

instead of 代替

./bin/install/reloc.sh
pwd

I thought Chris was asking about non-root, no sudo... I was interested in doing the same for development on an Ubuntu 14.04 vbox and ran into this issue. 我以为Chris询问的是非root用户,没有sudo ...我对在Ubuntu 14.04 vbox上进行开发同样感兴趣,因此遇到了这个问题。

  • You can get your current hard limit with (I got 4096): 您可以使用(我得到4096)来获得当前的硬限制:

    $ ulimit -Hn

  • Edit /etc/security/limits.conf (domain is a user or group) 编辑/etc/security/limits.conf(域是用户或组)

    <domain> <type> <item> <value>

  • Edit the /etc/pam.d/common-session and insert at the bottom: 编辑/etc/pam.d/common-session并在底部插入:

    session required pam_limits.so

This should answer the mail, but you probably want to implement a script that runs this per process since this is a permanent solution. 这应该可以回答邮件,但是您可能想要实现一个脚本,该脚本在每个进程中都可以运行,因为这是一个永久性的解决方案。 Looking forward to feedback on this if anyone has any. 期待有任何反馈。

  • Standing on the shoulders of giants... 站在巨人的肩膀上...

https://www.digitalocean.com/community/tutorials/how-to-install-couchbase-from-source-with-git-and-make-on-a-debian-7-vps https://www.digitalocean.com/community/tutorials/how-to-install-couchbase-from-source-with-git-and-make-on-a-debian-7-vps

https://github.com/couchbase/sync_gateway/issues/218 https://github.com/couchbase/sync_gateway/issues/218

https://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user https://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user

Hope that helps. 希望能有所帮助。

Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 sudo / suid非根嵌套失败 - sudo/suid non-root nesting fails 有没有我可以以非root用户身份运行的命令,以查看用户是否可以运行某些sudo命令 - Is there a command I can run as a non-root user to see if a user can run a certain sudo command 我不能 su 到非 root 用户 - I can't su to non-root user Python 'keyboard' 模块以非 root 身份工作,但不能在 sudo (linux) 中工作 - Python 'keyboard' module working as non-root but not working in sudo (linux) 以非超级用户身份运行闪亮的服务器 - run shiny server as non-root 如何以root身份启动Java程序,但降级为非root用户 - How to start Java program as root but downgrade to non-root user HDFS start-all.sh(由root用户或非root用户使用) - HDFS start-all.sh by root or non-root user 你能否以root身份在Docker容器内启动进程,而exec调用的默认用户是非root用户? - Can you start a process inside a Docker container as root, while having the default user of an exec call be non-root? 无法从非root用户访问/ dev / sda3 - can't access /dev/sda3 from non-root user 如何避免 sudo 词,以由非 root 用户执行更高权限的命令 - How to avoid the sudo word, for executing the higher privilged commands by a non-root user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM