深受这篇博客文章的影响,边学习边记录下这篇笔记;其中根据我自己的疑问点,较为细致的解释了各种初学者可能产生的问题,希望能对正在阅读的你有所帮助。
It’s worthing mentioning that I’ve drunk too many coffee when writing the background part, making it really hard to read.
You have my most sincere regretfulness.
Background
I first knew about Nginx
when I was tinkering something to help me bypassing the network censorship. I remember there was this tutorial in the advanced section of which introduced the possibility of making utilities of nginx to better disguise the traffic.
I was too young, too dumb (still), too broke, and too eager to get YouTube videos played, so I ignored everything in that section.
Time flies, as I became a college student who’s unfortunately majoring software engineering, I found myself in an awful need of a WebDAV server (Thank you Zotero). I quickly realized that there are generally 2 web servers which can help me with it, Apache and Nginx. Since I just finished Computer Networks and 网络通讯程序设计 (it’s hard to find a equivalent course that is targeted solely at Linux proxy programming) that semester, I thought it would be a really good opportunity to actually finish what I have left off years ago.
It worked until Zotero yelled at telling that the SSL certificate was expired. Having forgotten everything about how I managed to make it work, I decide to redo the process and dig into everything that I have questions about this time.
What makes it even better is post-rock music that I’ll keep a journal too.
And that’s the story behind the words following, since I am still learning, there have to be problems and issues.
You can always reach me at
zhixuanqi at outlook dot com
Let’s roll?
Method
There are generally 2 ways to get Nginx on your server, one is to install pre-built releases form the usual package repos, and the other one is to build it from source.
- installing
Nginx
making use of the package manager would be a relatively easier task, while building it from source would give you a granular access to control more aspects of the package, including custom packages and paths.
Install with Yum
sudo yum install nginx
see you later
Build Nginx from Source
Installing prerequisite packages
yum install wget
yum install gcc gcc-c++ kernel-devel make
yum install pcre pcre-devel
yum