程式CODE

2017年11月12日 星期日

mongodb3.4 on ubuntu16.04

1.安裝php7.0-dev
2.安裝 mongodb
參考
https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-ubuntu/?_ga=2.129489100.1195882431.1510537338-456472532.1510537338&_gac=1.85349099.1510544825.Cj0KCQiA_5_QBRC9ARIsADVww1608RNV3rB8gGyQiYF0hAL8goH-XFOogLBT5FUyiLUrHrwUNE6pPWIaAqG5EALw_wcB

2-1.匯入key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

2-2.增加source list
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

2-3.update
sudo apt-get update

2-4.安裝mongodb
sudo apt-get install -y mongodb-org

3.安裝新版 php-mongo extension
sudo pecl install mongodb

4. GUI
mongo management studio



沒有留言:

張貼留言