Browse Source

update readme

Caner 2 years ago
parent
commit
47fd541e6b
2 changed files with 25 additions and 5 deletions
  1. 13 0
      PyHttpServer.service
  2. 12 5
      README.md

+ 13 - 0
PyHttpServer.service

@@ -0,0 +1,13 @@
+[Unit]
+Description=pyHttp Server Service
+After=network.target
+
+[Service]
+Type=simple
+User=root
+Restart=always
+RestartSec=3s
+ExecStart=/var/www/main
+
+[Install]
+WantedBy=multi-user.target

+ 12 - 5
README.md

@@ -1,11 +1,18 @@
-# 闲鱼
-```
-154.12.31.11
-root:Vivo7788
+## python 服务器
 
 
+### ssh
+```
+1. ssh root@154.12.31.11
+2. Vivo7788
 ```
 ```
 
 
 ### 打包
 ### 打包
 ```
 ```
-pyinstaller --onefile --hidden-import main main.py
+1. pyinstaller --onefile --hidden-import main main.py
+2. ./dist/main
+```
+### 部署
 ```
 ```
+1. systemctl enable PyHttpServer.service
+2. systemctl restart PyHttpServer.service
+```