H
H
hckray2017-04-05 14:21:48
Python
hckray, 2017-04-05 14:21:48

How to run python script on server?

Recently I wrote a telegram bot in python.
Now I want to run it on the server so that it works non-stop.
Tell me how to do it

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@gridmit, 2017-04-05
@hckray

ssh remote_server
apt install screen
screen
python3 your_script
Ctrl+A+D

S
sim3x, 2017-04-05
@sim3x

configure systemd

A
alex maslakoff, 2017-04-05
@teke_teke

connect via ssh, then python script.py&

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question