Я пытаюсь запустить сервер рокетчата на Debian 8.6.
Я выполнил все инструкции с этой страницы https://rocket.chat/docs/installation/manual-installation/debian/ что отправляет меня к этому https://rocket.chat/docs/установка/ручная-установка/ubuntu/#2-install-rocketchat< /сильный>
Теперь я застрял в этой части.
Запустите оболочку MongoDB и инициируйте набор реплик:
mongo rs.initiate()
Он возвращает это
root@viejo:/# mongo
MongoDB shell version: 3.2.10
connecting to: test
Server has startup warnings:
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is always'.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 3902 processes, 65536 files. Number of processes should be at least 32768 : 0.5 times number of files.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
> rs.initiate()
{
"ok" : 0,
"errmsg" : "This node was not started with the replSet option",
"code" : 76
}
В файле /etc/mongod.conf я вручную заменил это
replication:
replSetName: "001-rs"
с этим
--replSet=001-rs
как рекомендовано здесь Replica Set Error Code 76, но ничего не изменилось
Вот важный текст:
root@viejo:/# mongod --version
db version v3.2.10
git version: 79d9b3ab5ce20f51c272b4411202710a082d0317
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
allocator: tcmalloc
modules: none
build environment:
distmod: debian71
distarch: x86_64
target_arch: x86_64re
root@viejo:/# node --version
v4.5.0
Это мой файл /etc/mongodb.conf (за строкой «journal=true» следуют 65 строк, все они начинаются с #)
# mongodb.conf
# Where to store the data.
dbpath=/var/lib/mongodb
#where to log
logpath=/var/log/mongodb/mongodb.log
logappend=true
bind_ip = 127.0.0.1
#port = 27017
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
journal=true
Это мой файл /etc/mongod.conf
# mongod.conf
# for documentation of all options, see:
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
#processManagement:
#security:
#operationProfiling:
replication:
replSetName: "001-rs"
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
Это мой файл /etc/hosts
127.0.0.1 localhost
127.0.1.1 viejo.primer viejo
127.0.0.1 viejo
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Я сделал это (на другой вкладке) перед запуском команды mongo.
root@viejo:/# mongod
2016-10-02T12:19:33.499-0700 I CONTROL [initandlisten] MongoDB starting : pid=1665 port=27017 dbpath=/data/db 64-bit host=viejo
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] db version v3.2.10
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] allocator: tcmalloc
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] modules: none
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] build environment:
2016-10-02T12:19:33.500-0700 I CONTROL [initandlisten] distmod: debian71
2016-10-02T12:19:33.501-0700 I CONTROL [initandlisten] distarch: x86_64
2016-10-02T12:19:33.501-0700 I CONTROL [initandlisten] target_arch: x86_64
2016-10-02T12:19:33.501-0700 I CONTROL [initandlisten] options: {}
2016-10-02T12:19:33.611-0700 I - [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2016-10-02T12:19:33.611-0700 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 3902 processes, 65536 files. Number of processes should be at least 32768 : 0.5 times number of files.
2016-10-02T12:19:35.158-0700 I CONTROL [initandlisten]
2016-10-02T12:19:35.159-0700 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2016-10-02T12:19:35.160-0700 I NETWORK [initandlisten] waiting for connections on port 27017
2016-10-02T12:19:35.161-0700 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker
2016-10-02T12:19:50.030-0700 I NETWORK [initandlisten] connection accepted from 127.0.0.1:39524 #1 (1 connection now open)
Мне нужна помощь здесь, пожалуйста! Заранее спасибо.