| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
- shell_gpt
- 모의해킹
- AWS
- 내부확산
- LFI
- 많다..
- Frida
- esbuild
- Sequoia
- 취약점
- aes
- self-signed
- 변태는
- 허리디스크
- EC2
- ue4dumper
- cve-2025-55182
- 척추관협착증
- 안전결제
- jeb_mcp
- XSS
- 네이버카페
- react2shell
- mitmproxy
- Malware Sample
- intelmac
- speed-measure-webpack-plugin
- 채팅환전사기
- 중고나라
- S3
- 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.
'데이터베이스' 카테고리의 다른 글
| AWS CPUUtilization (0) | 2026.01.12 |
|---|---|
| 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 |
