現(xiàn)象:在CentOS7下rpm安裝CouchBase,安裝都成功了,但是在最后啟動是總是報目錄不存在的錯誤 解決方法: 1. 輸入命令:vim /lib/systemd/system/couchbase-server.service,添加如下內容: # -*- mode: conf-unix; -*- [Unit] Description = Couchbase Server Documentation = http://docs. After = network.target remote-fs.target nss-lookup.target [Service] SyslogIdentifier = couchbase User = couchbase Type = forking PIDFile=/opt/couchbase/var/lib/couchbase/couchbase-server.pid WorkingDirectory = /opt/couchbase/var/lib/couchbase LimitNOFILE = 40960 LimitCORE = unlimited LimitMEMLOCK = unlimited ExecStart = /opt/couchbase/bin/couchbase-server -noinput -detached > /opt/couchbase/var/lib/couchbase/logs/start.log 2>&1 ExecStop = /opt/couchbase/bin/couchbase-server -k [Install] WantedBy = multi-user.target 2. systemctl daemon-reload 3. systemctl enable couchbase-server 4. systemctl restart couchbase-server 啟動就好了 如果無法http訪問,可能是防火墻開著并且沒有正確配置。couchbase需要如下端口: Table 2.1. Getting Started — Network Ports
1. SELINUX是否開啟并且沒有設置: geteforce,可以暫時用setenforce 0 關閉,不過建議還是開啟,可以參照:http://rdc./eps/blog/132.html 2. 檢查firewalld: - 檢查端口:firewall-cmd --zone=public --list-ports - 添加端口: firewall-cmd --zone=public --add-port=4369/tcp --permanent firewall-cmd --zone=public --add-port=4369/udp --permanent firewall-cmd --zone=public --add-port=8091/tcp --permanent firewall-cmd --zone=public --add-port=8092/tcp --permanent firewall-cmd --zone=public --add-port=8092/udp --permanent firewall-cmd --zone=public --add-port=11209/tcp --permanent firewall-cmd --zone=public --add-port=11210/tcp --permanent firewall-cmd --zone=public --add-port=11211/tcp --permanent firewall-cmd --zone=public --add-port=11209/udp --permanent firewall-cmd --zone=public --add-port=11210/udp --permanent firewall-cmd --zone=public --add-port=11211/udp --permanent firewall-cmd --zone=public --add-port=21100-21199udp --permanent firewall-cmd --reload |
|
來自: 用勿龍潛 > 《couchbase》