Varnish Proxy Server notes
Varnish is an open source proxy server software. The difference between Squid and Squid is that data is cached in memory. It is fast and not easy to crash. However, after the crash, all data disappears, causing all requests to be sent to the backend server, which is a disadvantage of Squid.
Installing varnish requires support from the pcre Library. There are two ways to add your own Library:
1: Use the ldconfig tool to write the path of the library file to the/etc/ld. so. conf file, and then use the ldconfig tool to load the file.
The library loading path is implemented through a cache file ld. so. cache, And the ldconfig tool reads the content of the ld. so. conf file and integrates it into the saved files. Therefore, it is not enough to add it to the ld. so. conf file.
2: load data using the pkg-config tool. After installing the software package, there is usually a lib/pkg-config/* under the installation directory /*. pc file, copy the file to the/usr/lib/pkg-config/folder ,*. the pc file contains the path of the user library.