Rockylinx9 Install Angie

anangie

what is Angie

Angie /ˈendʒi/ is an efficient, powerful, and scalable web server that was forked from nginx

  • Conceived by ex-devs from the original team to venture beyond the earlier vision and act as a drop-in replacement without major changes to module setup or configuration.

  • Includes all capabilities of nginx 1.27.0 and a number of new features.

Install

Angie provides Dokker images, binary packages, source code, and other ways to install them, so I like to use source code to compile the installation.

Like nginx, angie also needs to install some basic dependencies.

[root@localhost angie-1.6.0]# yum -y install pcre pcre-devel zlib zlib-devel openssl openssl-devel

Then we started compiling and installing Angie.

[root@localhost angie-1.6.0]# ./configure --user=www --group=www --prefix=/usr/local/angie

....
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE2 library ... not found
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for zlib library ... found
creating objs/Makefile
collecting build environment information... ok

Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + using system zlib library

  Angie path prefix: "/usr/local/angie"
  Angie binary file: "/usr/local/angie/sbin/angie"
  Angie modules path: "/usr/local/angie/modules"
  Angie configuration prefix: "/usr/local/angie/conf"
  Angie configuration file: "/usr/local/angie/conf/angie.conf"
  Angie pid file: "/usr/local/angie/logs/angie.pid"
  Angie error log file: "/usr/local/angie/logs/error.log"
  Angie http access log file: "/usr/local/angie/logs/access.log"
  Angie http client request body temporary files: "client_body_temp"
  Angie http proxy temporary files: "proxy_temp"
  Angie http fastcgi temporary files: "fastcgi_temp"
  Angie http uwsgi temporary files: "uwsgi_temp"
  Angie http scgi temporary files: "scgi_temp"
[root@localhost angie-1.6.0]# make && make install 
...
test -f '/usr/local/angie/conf/angie.conf' \
	|| cp conf/angie.conf '/usr/local/angie/conf/angie.conf'
cp conf/angie.conf '/usr/local/angie/conf/angie.conf.default'
test -d '/usr/local/angie/logs' \
	|| mkdir -p '/usr/local/angie/logs'
test -d '/usr/local/angie/logs' \
	|| mkdir -p '/usr/local/angie/logs'
test -d '/usr/local/angie/html' \
	|| cp -R html '/usr/local/angie'
test -d '/usr/local/angie/logs' \
	|| mkdir -p '/usr/local/angie/logs'
make[1]: Leaving directory '/data/software/angie-1.6.0'

If there is no error, then Angie has been successfully installed on your operating system.

Config

Next, let’s take a look at the following Angie.

[root@localhost angie-1.6.0]# /usr/local/angie/
conf/ html/ logs/ sbin/ 
[root@localhost angie-1.6.0]# /usr/local/angie/sbin/angie -t
angie: the configuration file /usr/local/angie/conf/angie.conf syntax is ok
angie: configuration file /usr/local/angie/conf/angie.conf test is successful
[root@localhost angie-1.6.0]# /usr/local/angie/sbin/angie 

angie-index