$ vim ~/.bash_profile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
change root password
UPDATE mysql.user
SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N'
WHERE User = 'root' AND Host = 'localhost';
FLUSH PRIVILEGES;
$ pecl install mongo
php.ini
extension=mongo.so
$ service httpd restart
** 이하 맥환경 **
setting-up-mongodb-with-php-and-mamp
or
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
$ brew install php56-mongo php56-memcache
$ cd /etc/apache2/other
$ sudo rm +php-osx.conf
$ sudo ln -s /usr/local/{PHP_VERSION_YOU_WANT}/entropy-php.conf +php-osx.conf
$ brew install php70
$ vim ~/.bash_profile
#php
export PATH=/usr/local/Cellar/php70/7.0.15_8/bin:$PATH
edit /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
Fianly Restart Apache
$ sudo apachectl restart
##MongoDB 2.6 ###Install how-to-install-mongodb-on-centos-6
edit mongo.conf
auth=ture