How to install Monkey webserver
How to install monkey web server
Monkey is a lightweight, scalable Web Server that is designed for a low memory, embedded devices, and CPU consumption. In this article we will learn how to install and use Monkey web server.
Features
- Supports HTTP/1.1 compliant
- It works on Event-driven plus a fixed threading model
- Supports IPv4 & IPv6
- Virtual Hosts
- Indented configuration
- Plugins Support, static or dynamic
- C API Interface
To install Monkey web server in Ubuntu
Utilise the following command to install the Monkey web server.
root@linuxhelp:~# wget -qO - http://apt.monkey-project.com/monkey.key | sudo apt-key add -
OK
Append the monkey source file to apt source directory.
root@linuxhelp:~# sh -c " echo ' deb http://apt.monkey-project.com/ubuntu wily main' > /etc/apt/sources.list.d/monkey.list"
Update the system by using the following command.
root@linuxhelp:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial InRelease [18.0 kB]
Get:3 http://apt.monkey-project.com/ubuntu wily InRelease [2,676 B]
.
.
.
Get:15 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [323 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [300 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [297 kB]
Fetched 1,464 kB in 35s (41.1 kB/s)
Reading package lists... Done
W: http://apt.monkey-project.com/ubuntu/dists/wily/InRelease: Signature by key 2ADB5A6EFBDA7B393F1C7E7894BF84E9EE3D14C7 uses weak digest algorithm (SHA1)
W: https://www.arangodb.com/repositories/arangodb3/xUbuntu_16.04/Release.gpg: Signature by key 4497DA50FBD0158CCFD1996CEE611E131C42E360 uses weak digest algorithm (SHA1)
Utilise the following command to install monkey web server.
root@linuxhelp:~# apt-get installmonkey
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Start the service and check the service of the Monkey Server.
root@linuxhelp:~# service monkey start root@linuxhelp:~# service monkey status monkey.service - Monkey HTTP Server Loaded: loaded (/lib/systemd/system/monkey.service disabled vendor preset: Active: active (running) since Tue 2016-08-02 03:25:14 IST 1min 2s ago Process: 8146 ExecStart=/usr/sbin/monkey --daemon (code=exited, status=0/SUCCE Main PID: 8149 (monkey: server) CGroup: /system.slice/monkey.service ??8149 /usr/sbin/monkey --daemon Aug 02 03:25:14 linuxhelp systemd[1]: Starting Monkey HTTP Server... Aug 02 03:25:14 linuxhelp monkey[8146]: Monkey HTTP Server v1.6.8 Aug 02 03:25:14 linuxhelp monkey[8146]: Built : Jan 18 2016 12:02:06 (/usr/bin/c Aug 02 03:25:14 linuxhelp monkey[8146]: Home : http://monkey-project.com Aug 02 03:25:14 linuxhelp monkey[8146]: [2016/08/02 03:25:14] [ Info] Backgrou Aug 02 03:25:14 linuxhelp systemd[1]: Started Monkey HTTP Server. Aug 02 03:25:49 linuxhelp systemd[1]: Started Monkey HTTP Server. lines 1-15/15 (END)
Open the browser and navigate to http://< IP_address>
Monkey web server index page open.
To install Monkey webserver in CentOS
Append the ulyaoth repo key file by using the following command.
[root@linuxhelp ~]# rpm --import https://repos.ulyaoth.net/RPM-GPG-KEY-ulyaoth
Run the following command to install ulyaoth repo file for monkey web server.
[root@linuxhelp ~]# yum install https://downloads.ulyaoth.net/rpm/ulyaoth-latest.centos.noarch.rpm
Loaded plugins: fastestmirror, langpacks
ulyaoth-latest.centos.noarch.rpm | 19 kB 00:00
Examining /var/tmp/yum-root-cOrneC/ulyaoth-latest.centos.noarch.rpm: ulyaoth-1.1.3-1.centos.noarch
Marking /var/tmp/yum-root-cOrneC/ulyaoth-latest.centos.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ulyaoth.noarch 0:1.1.3-1.centos will be installed
--> Finished Dependency Resolution
.
.
.
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ulyaoth-1.1.3-1.centos.noarch 1/1
----------------------------------------------------------------------
Thanks for using the Ulyaoth repository!
For any additional information or help please visit my forum at:
* https://www.ulyaoth.net
----------------------------------------------------------------------
Verifying : ulyaoth-1.1.3-1.centos.noarch 1/1
Installed:
ulyaoth.noarch 0:1.1.3-1.centos
Complete!
Enable ulyaoth repo and install monkey web server by using following command.
[root@linuxhelp ~]# yum --enablerepo=ulyaoth install ulyaoth-monkey
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: epel.mirror.net.in
* extras: centos.excellmedia.net
* ulyaoth: repos.ulyaoth.net
* updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package ulyaoth-monkey.x86_64 0:1.6.9-1.el7.centos will be installed
--> Processing Dependency: ulyaoth-mbedtls2.2 = 2.2.1 for package: ulyaoth-monkey-1.6.9-1.el7.centos.x86_64
--> Processing Dependency: libmbedtls.so.10()(64bit) for package: ulyaoth-monkey-1.6.9-1.el7.centos.x86_64
--> Running transaction check
---> Package ulyaoth-mbedtls2.2.x86_64 0:2.2.1-2.el7.centos will be installed
--> Finished Dependency Resolution
.
.
.
Verifying : ulyaoth-mbedtls2.2-2.2.1-2.el7.centos.x86_64 1/2
Verifying : ulyaoth-monkey-1.6.9-1.el7.centos.x86_64 2/2
Installed:
ulyaoth-monkey.x86_64 0:1.6.9-1.el7.centos
Dependency Installed:
ulyaoth-mbedtls2.2.x86_64 0:2.2.1-2.el7.centos
Complete!
Start the service and check the status of the monkey web server.
[root@linuxhelp ~]# systemctl start monkey.service [root@linuxhelp ~]# systemctl status monkey.service monkey.service - Monkey is a lightweight and powerful web server and development stack for GNU/Linux. Loaded: loaded (/usr/lib/systemd/system/monkey.service disabled vendor preset: disabled) Active: active (running) since Tue 2016-08-02 04:01:55 IST 1min 11s ago Docs: http://monkey-project.com/ Main PID: 4900 (monkey: server) CGroup: /system.slice/monkey.service ??4900 /usr/sbin/monkey Aug 02 04:01:55 linuxhelp.com monkey[4900]: Monkey HTTP Server v1.6.9 Aug 02 04:01:55 linuxhelp.com monkey[4900]: Built : Jun 6 2016 10:49:19 (/u...) Aug 02 04:01:55 linuxhelp.com monkey[4900]: Home : http://monkey-project.com Aug 02 04:01:55 linuxhelp.com monkey[4900]: [+] Process ID is 4900 Aug 02 04:01:55 linuxhelp.com monkey[4900]: [+] Server listening on 0.0.0.0:80 Aug 02 04:01:55 linuxhelp.com monkey[4900]: [+] 1 threads, may handle up to ...s Aug 02 04:01:55 linuxhelp.com monkey[4900]: [+] Loaded Plugins: liana Aug 02 04:01:55 linuxhelp.com monkey[4900]: [+] Linux Features: TCP_FASTOPEN...T Aug 02 04:01:55 linuxhelp.com monkey[4900]: [2016/08/02 04:01:55] [ Info] ...d Aug 02 04:02:48 linuxhelp.com systemd[1]: Started Monkey is a lightweight an.... Hint: Some lines were ellipsized, use -l to show in full.
Open browser and type http://< IP_ address>
Now monkey web server index page appears.
# yum install https://downloads.ulyaoth.net/rpm/ulyaoth-latest.centos.noarch.rpm
# yum --enablerepo=ulyaoth install ulyaoth-monkey
Supports HTTP/1.1 compliant
It works on Event-driven plus a fixed threading model
Supports IPv4 & IPv6
Virtual Hosts
Use "find / -type d -name 'www' "
# wget -qO - http://apt.monkey-project.com/monkey.key | sudo apt-key add -
# apt-get update
# apt-get installmonkey