[英]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)
(我包括了我下载的版本)
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.
期待有任何反馈。
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.