일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 안전결제
- Malware Sample
- NUGU
- MongoDB #NoSQL #CreateUser #DropUser #mongod #mognod.conf
- intelmac
- open redirect
- ssrf
- 허리디스크
- 보이스피싱 #대검찰청 #명의도용 #비밀번호 #계좌번호 #공공기관 #가짜검찰청
- speed-measure-webpack-plugin
- self-signed
- 척추관협착증
- CJ대한통운 #쿠팡 #통관번호오류 #통관고유번호오류 #안주원팀장 #모건인베스트
- Sequoia
- react
- 모의해킹
- XSS
- CryptoJS
- 채팅환전사기
- 중고나라
- 거래사기
- esbuild
- 네이버카페
- shell_gpt
- 취약점
- 변태는
- Frida
- 많다..
- ue4dumper
- 로맨스스캠
- Today
- Total
annyoung
Install MongoDB + phpMongoDriver in Mac OSX High Sierra 본문
brew install mongodb |
First, you have to install mongodb.
nopsled@smleeo3o:~/dump (=`ω´=)$ php -v PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies |
Second, check your php version. this example's php version is 7.1.
brew tap kyslik/php brew install php71-mongodb |
Third, we have to install php MongoDriver 7.1
nopsled@smleeo3o:~ (=`ω´=)$ cd /usr/local/Cellar/php71-mongodb/1.4.0 nopsled@smleeo3o:/usr/local/Cellar/php71-mongodb/1.4.0 (=`ω´=)$ ls INSTALL_RECEIPT.json mongodb.so* nopsled@smleeo3o:/usr/local/Cellar/php71-mongodb/1.4.0 (=`ω´=)$ cp /etc/php.ini.default /etc/php.ini |
Check mongodb.so file and copy your /etc/php.ini.default to /etc/php.ini.
878 ; ... or with a path: 879 ; 880 ; extension=/path/to/extension/msql.so 881 ; 882 extension=/usr/local/Cellar/php71-mongodb/1.4.0/mongodb.so 883 ; If you only provide the name of the extension, PHP will look for it in its 884 ; default extension directory. 885 ; 886 ; Windows Extensions |
And you have to add mognodb.so files location in /etc/php.ini.
nopsled@smleeo3o:/usr/local/Cellar/php71-mongodb/1.4.0 (=`ω´=)$ sudo apachectl restart |
restart your apache.
'데이터베이스' 카테고리의 다른 글
mongodb combine two queries with aggregate (0) | 2022.01.25 |
---|---|
MongoDB 유저생성 및 데이터베이스 생성 (0) | 2019.01.08 |
[mongodb] how to find dictionary not null (0) | 2018.04.30 |
mongodb not authorized? how to create database in mongodb (0) | 2018.04.18 |