Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertised) 1. Nginx reference: www. digitalocean. comcommunityarticleshow-to-set-up-nginx-virtual-
Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertising) 1, Nginx reference: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-
Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertisement)
1. Nginx
Reference: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts-3
2. PHP is installed in the second half.
Reference: https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04
3. MongoDB
Reference: https://www.digitalocean.com/community/articles/how-to-install-mongodb-on-ubuntu-12-04
4. PHP driver
Download 1.2.12 (wget, axel, etc.) at http://pecl.php.net/package/#, and then run the following command:
- Tar zxf mongo-1.2.12.tgz
- Cd mongo-1.2.12
- Phpize5 (you may need to execute apt-get install php5-dev first)
- ./Configure
- Make install (you may need to execute apt-get install make first)
Add extension = mongo. so to the php. ini file (depending on the configuration, check whether the path is required. I directly add the path)
5. Use phpinfo () to view the result.
Original article address: Build the Nginx + PHP + MongoDB environment on VPS. Thank you for sharing it with me.