How to start a python script as a linux service

how to start a python script as a linux service and pass parameters to the class in the script with a post request using javaweb.
I want to start the script as a service and pass parameters to the script in the way of JAVA,httpPost (127.0.0.1 jsonParam)

Aug.31,2021

< H2 > create a service < / H2 >
 

start a server at port 8000
python-m SimpleHTTPServer 8000

then httpPost (127.0.0.1 8000 jsonParam)

Menu