1. uWSGI Installation. $ sudo pip-3.6 install uwsgi Collecting uwsgi Downloading uwsgi-2.0.17.tar.gz (798kB) 100% |################################| 798kB 709kB/s Installing collected packages: uwsgi Running setup.py install for uwsgi ... done Successfully installed uwsgi-2.0.17 1.1 Basic test Let’s start with a simple “Hello World” example: def application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) return [b"Hello World"] As you can see, it is composed of a single Python function. It is called “application” as this is the default function that the uWSGI Python loader will search for (but you can obviously customize it). 1.2 Now start uWSGI to run an HTTP server/router passing requests to your WSGI application: uwsgi --http :9090 --wsgi-file foobar.py 2.Installing Django. Install Django into your virtualenv , create a new project $ mkproject django $ pip install Django Collecting Django ...
In First, Confirm your Domain's Nameserver has been modified. NS1.AFRAID.ORG NS2.AFRAID.ORG NS3.AFRAID.ORG NS4.AFRAID.ORG step 1. Install ddClient from ports. $ sudo pkg install ddclient Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 4 package(s) will be affected (of 0 checked): New packages to be INSTALLED: ddclient: 3.8.3_3 p5-IO-Socket-SSL: 2.051 p5-Mozilla-CA: 20160104 p5-Net-SSLeay: 1.81 Number of packages to be installed: 4 The process will require 2 MiB more space. 590 KiB to be downloaded. Proceed with this action? [y/N]: y [1/4] Fetching ddclient-3.8.3_3.txz: 100% 43 KiB 44.5kB/s 00:01 [2/4] Fetching p5-IO-Socket-SSL-2.051.txz: 100% 158 KiB 162.1kB/s 00:01 [3/4] Fetching p5-Mozilla-CA-20160104.txz: 100% 147 KiB 150.0kB/s 00:01 [4/4] Fetching p5-Net-SSLeay-1.81.txz: 100% 242 KiB 247.4kB/s 00:01 Checking integrity... done (0 conflicting) [1...
Comments
Post a Comment