Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

gmyou/devjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev Job

Python

Variable Version Setting

Install PYENV && Edit ~/.bash_profile && source ~/.bash_profile

$ vim ~/.bash_profile 
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

MySQL

change root password

UPDATE mysql.user
    SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N'
    WHERE User = 'root' AND Host = 'localhost';
FLUSH PRIVILEGES;

PHP

MongoDB Driver on CentOS

$ pecl install mongo

php.ini

extension=mongo.so


$ service httpd restart

** 이하 맥환경 **

alt text

Install MongoDB Driver on MAMP

setting-up-mongodb-with-php-and-mamp

or

Install Not on MAMP

$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
$ brew install php56-mongo php56-memcache

Change PHP Version (Not on MAMP)

$ cd /etc/apache2/other
$ sudo rm +php-osx.conf 
$ sudo ln -s /usr/local/{PHP_VERSION_YOU_WANT}/entropy-php.conf +php-osx.conf

Change PHP-CLI Version (Not on MAMP)

$ brew install php70
$ vim ~/.bash_profile

Add This Line on ~/.bash_profile && source ~/.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

Auth

Create User

사용자 관리 (User Administration)

Auth Configuration

edit mongo.conf

auth=ture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages