Install rockmongo in ubuntu 12.04

Source: Internet
Author: User
Tags install mongodb

I have read a lot of similar articles before installing rockmongo in ubuntu 12.04, and I feel a little complicated. I have studied it myself and encountered many problems. I will sort out the following articles today, I hope to help others www.2cto.com 1. install php sudo apt-get install php5 2. installing php-cgi sudo apt-get install php5-cgi 3. install nginx sudo apt-get install nginx 4. install mongodb sudo apt-get install mongodb 5. install pecl sudo apt-get install pecl 6. install the mongo driver sudo pecl install mongo 7. configure cgi sudo vim/etc/php5/cgi/php. ini and then add extension = mongo. so 8. download rockmongo http :/ /Route 9. if you do not set the directory access permission, you may not be able to access it. My computer is like this. Some may not need sudo chmod 777-R $ rockmongo 10. configure nginx sudo vim/etc/nginx/conf. d/rockmongo. conf copy the following server {# This is the port number of your rockbench Web server. If not set, the default value is 80 listen 12345; # This is the path root $ rockmongo; location ~ after downloading and unzipping ~ \. Php $ {# php-cgi port number. Here I set 9000 fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. php; fastcgi_param SCRIPT_FILENAME $ rockmongo/$ fastcgi_script_name; include fastcgi_params ;}} 11. start the server. In the terminal xia mongod php-cgi-B 9000 nginx12, open the browser and enter localhost: 12345/index. the default php username and password are both admin and OK.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.