"5" Deploy the service to native (Ubuntu14.04)

Source: Internet
Author: User

First, copy the file to the specified folder first

Here I choose to create a new WWW folder under/var to store

Copy the contents of the blog folder to the WWW folder

1 sudo cp-r/home/jakeychen/jakey/blog//var/www/
1 [email protected]:/var/www/blog$ sudo service supervisor restart2restarting Supervisor:supervisord. 3 [email protected]:/var/www/4 tornadoes:tornado-8000           RUNNING    pid 10949, uptime 0:00:085 tornadoes:tornado-8001           RUNNING    pid 10950, uptime 0:00:086 Tornadoes: tornado-8002           RUNNING    pid 10951, uptime 0:00:087 tornadoes:tornado-8003           RUNNING    pid 10952, uptime 0:00:088

Create a new tornado.conf under the CONF.D directory

sudo vim/etc/supervisor/conf.d/tornado.conf

tornado.conf File Contents

1 [Group:tornadoes]2programs=tornado-8000,tornado-8001,tornado-8002,tornado-80033 4[program:tornado-8000]5Command=sudo python/var/www/blog/main.py--port=80006directory=/var/www/Blog7User=Root8autorestart=true9Redirect_stderr=trueTenstdout_logfile=/var/www/blog/logs/Server.log OneLoglevel=Info A  -[program:tornado-8001] -Command=sudo python/var/www/blog/main.py--port=8001 thedirectory=/var/www/Blog -User=Root -autorestart=true -Redirect_stderr=true +stdout_logfile=/var/www/blog/logs/Server.log -Loglevel=Info +  A[program:tornado-8002] atCommand=sudo python/var/www/blog/main.py--port=8002 -directory=/var/www/Blog -User=Root -autorestart=true -Redirect_stderr=true -stdout_logfile=/var/www/blog/logs/Server.log inLoglevel=Info -  to[program:tornado-8003] +Command=sudo python/var/www/blog/main.py--port=8003 -directory=/var/www/Blog theUser=Root *autorestart=true $Redirect_stderr=truePanax Notoginsengstdout_logfile=/var/www/blog/logs/Server.log -Loglevel=info

Restart Service

sudo service supervisor Restart

"5" Deploy the service to native (Ubuntu14.04)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.