Linux----Deployment

Source: Internet
Author: User

Deployment

Deploying Python Programs

**1.** to directory Update code
**2.** Changing code----configuration database
**3.** test run (./python.py)
**4.** write a script. sh file, put the python file you want to run in the script (the script file is in the same level directory as the Python file)
**5.** See what's Inside crontab
Crontab-l
**6.** Check to see if the contents of crontab are running in mail?

----------


1. sh file
#!/bin/bash is a script executor
2, Crontab-l
See what's Inside crontab
3, 0 * * * */home/wisdombud/jetty/wisdomhr-pyspider/src/yjbys/ostart.sh
Minute/time/day/month/week file path


----------


Deploying Java Programs
**1.** put the well-made jar pack on the server
Two types of---->
Local (Dos) to server:
Into the Lib directory, locate the jar package that you want to replace RM off. RZ add a new jar package
Server (113) to server (128):
SCP Local File Destination path
EG:SCP *.jar/home/wisdombud/jetty/wisdomhr-compute/lib
**2.** Modifying a configuration file (database information)
Into the CFG directory, vim appconfig.properties modify the database information
**3.** Test Run
Go to the Bin directory, write the script file
The runtime memory that can be modified in the script/file to be run
eg:java-xmx512m Com.wisdombud.wisdomhr.sync.JobSyncMain
When the test runs./sh.sh
**4.** to use Nohup when running.
Nohup./run.bat &
**5.** to see if a Java program is running
JPs

Linux----Deployment

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.