loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Problem deploying ngrest under nginx on Ubuntu 16.04 #57

Closed hoang408 closed 6 years ago

hoang408 commented 6 years ago

As ngrest service fails on my Windows 7 PC and the Ubuntu 18.04 VM that runs on it, I try doing it on my Ubuntu 16.04 machine following this guide: github.com/loentar/ngrest/wiki/Deploy-ngrest-under-Nginx

It fails at sudo apt-get build-dep nginx with multiple Failed to fetch complaints. Googling around I find this guide: www.howtoforge.com/tutorial/how-to-install-nginx-and-google-pagespeed-on-ubuntu-16-04/

Some magic happens after these commands:

sudo sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62
sudo apt-get update

I then go back to the ~/nginx-build folder and execute sudo apt-get build-dep nginx. It happily builds. I figure this may help others.