nxweb Quick Start under Debian Wheezy
07.11.2014Install dependencies
We need to use wheezy-backports
Debian repository to get newer version of GNUTLS library.
The following commands need to be run as root
.
echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/wheezy-backports.list \
&& apt-get update && apt-get -t wheezy-backports install -y libgnutls28-dev \
&& apt-get install -y build-essential curl libmagickwand-dev python-dev
Make & install nxweb
The following code is for 3.3.0-dev
version of nxweb. In order to install other version please make corresponding changes.
curl -SL 'https://bitbucket.org/yarosla/nxweb/downloads/nxweb-3.3.0-dev.tar.gz' | tar xzf - \
&& cd nxweb-3.3.0-dev \
&& ./configure --with-imagemagick --with-gnutls --with-python --disable-certificates \
&& make && sudo make install \
&& mv sample_config .. \
&& cd .. && rm -rf nxweb-3.3.0-dev
Run samples
From the same directory execute:
cd sample_config
nxweb
This will launch nxweb with sample config nxweb_config.json
located in sample_config
directory.
Using your browser visit the following locations:
- http://localhost:8055/
- http://localhost:8055/hello
- http://localhost:8055/py
There are other handlers in sample config, which you can discover studying the config file.
Comments