Kayıtlar

Aralık 14, 2015 tarihine ait yayınlar gösteriliyor

Deneyimler mongodb linux

deneyimler windows makineler üzerinde mongodb service stop et o zaman log dosyalarını değiştirebilirsin servis başlatırken hata verirse mongod --repair yap linux üzerinde ftp configurasyonunan bak nano /etc/vsftpd.conf //new york makinesinde directory /home/ogan/Gozlemci altında ftp ile atılmış backup(dump) dosyaları //dump buraya aktarılabilir // eski versiyon mongorestore --dbpath /var/lib/mongodb  -d Gozlemci /home/ogan/Gozlemci/Gozlemci --noIndexRestore mongorestore --host mongo1.webmedyaburda.com  -d Gozlemci /home/ogan/Gozlemci/Gozlemci mongorestore --collection detaypost  -d Gozlemci /home/ogan/Gozlemci/Gozlemci/detaypost.bson ilgili makinede  veritabanında kullanıcı yaratmak için bu işlemi yapabiliriz bazen dump işlemi eksik olabiliyor bu noktada dökümanları eski db ile karşılaştırmak gerekebiliyor db.createUser ( { user: "dbuser", pwd: "XXXXXXXX", roles: [ "readWrite", "dbAdmin", "dbOwner" ] } ) eğer ilgili

Log

login as: root root@45.55.206.130's password: Access denied root@45.55.206.130's password: Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-43-generic x86_64)  * Documentation:  https://help.ubuntu.com/   System information as of Tue Dec  1 03:55:47 EST 2015   System load:  0.05               Processes:           76   Usage of /:   35.7% of 19.56GB   Users logged in:     0   Memory usage: 36%                IP address for eth0: 45.55.206.130   Swap usage:   0%   Graph this data and manage this system at:     https://landscape.canonical.com/ 48 packages can be updated. 22 updates are security updates. *** System restart required *** ------------------------------------------------------------------------------------- Welcome to DigitalOcean's MongoDB Application Your MongoDB instance is running on port 27017 and is bound to the local interface. ------------------------------------------------------------------------------------- To delete this mess