I deploy the nginx server In Debian 7 in VMware and deploy it offline. The process is as follows:
1. Prepare the required offline installation package
Links (the download links are provided at the end of these package articles)
2. Install PCRE
Tar zxvf pcre-8.34.tar.gz
CD pcre-8.34
./Configure
Make
Sudo make install
3. Install OpenSSL
Use the online installation method, sudo apt-Get install OpenSSL
4. Install zlib
Tar zxvf zlib-1.2.8.tar.gz
CD zlib-1.2.8
./Configure
Make
Sudo make install
Note: If this package is not installed, nginx will report "Make: *** no rule to make target 'build', needed by 'default'. Stop." error when making.
5. Install nginx
Tar zxvf nginx-1.6.2.tar.gz
CD nginx-1.6.2
./Configure
Make
Sudo make install
So far, nginx has been deployed and can be used.
In general, if online installation is adopted in Linux (APT-Get install), the software will be installed under the/usr directory. Specifically, the executable program is installed in/usr/bin, and the configuration file is installed in/usr/etc. If you use the offline installation method, for example, this method in this article (tar & CD &&. /configure & make install), which is installed in the/usr/local directory by default. The executable program is installed in/usr/local/bin, the configuration file is installed in/usr/local/etc. If you need to specify the installation directory. /use the -- prefix option to specify configure, for example. /configure -- prefix/usr/local/***. All files related to the software will be installed in the/usr/local/***/directory, for example, the executable program is installed in/usr/local/***/bin, and the configuration file is installed in/usr/local/***/etc. You can flexibly configure according to your preferences. For ease of uninstallation, you can use -- prefix to execute the installation directory. When you delete the installation directory, it is very convenient.
Used offline installation package download: http://yun.baidu.com/share/link? Consumer id = 1842645602 & UK = 856527867
Deploy nginx server in debian7