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)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb5f19-2591.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb5f19-2591.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?