ubuntu t2.micro magnatic 8GB
$ sudo apt-get update
* LC_ALL 설정
/home/ubuntu/.bashrc 에 다음 추가
export LC_ALL="en_US.UTF-8"
* shell update
$ source .bash_profile
(http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/)
* mongoDB Setting
Now configure the following MongoDB parameters by editing the configuration file /etc/mongod.conf:
dbpath = /data
logpath = /log/mongod.log
* db path에 db폴더 만들고 권한 바꿔주기
$ sudo mkdir /data/db
$ sudo chown ubuntu /data/db
* 몽고 서비스 시작
$ sudo service mongod start
* For deployment
$ sudo apt-get install git
$ sudo apt-get install libxml2-dev libxslt1-dev python-dev
# $ sudo apt-get install python-pip
$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ sudo python ez_setup.py
$ sudo easy_install requests==2.3.0
$ sudo easy_install -U pip
nginx
1 2 3 4 | sudo aptitude install software-properties-common; sudo add-apt-repository ppa:nginx /development ; sudo apt-get update; sudo apt-get install nginx; |
'aws' 카테고리의 다른 글
kinesis firehose 삽질일기 (0) | 2017.03.16 |
---|---|
How to EC2 disk and memory usage monitoring (0) | 2015.03.27 |
elasticache dump to file (1) | 2015.03.23 |
HTTP 505: HTTP Version Not Supported (0) | 2014.07.09 |
boto s3 Broken pipe error (0) | 2014.04.25 |