修改initServer
This commit is contained in:
parent
3d22167f05
commit
a30d759d8e
10
diskmount.py
10
diskmount.py
|
@ -6,12 +6,10 @@ import subprocess
|
|||
|
||||
#挂载磁盘
|
||||
def mountDisk():
|
||||
mount_sys="mount -L sys /mnt/sys_nas/"
|
||||
mount_soft="mount -L soft /mnt/soft_nas/"
|
||||
mount_archives="mount -L archives /mnt/archives_nas/"
|
||||
mount_git="mount -L git /mnt/git_nas/"
|
||||
mount_cloud="mount -L cloud /mnt/cloud/"
|
||||
mount_os_soft="mount -L os_soft /mnt/os_soft/"
|
||||
mount_sys="mount -L sys /mnt/sys/"
|
||||
mount_soft="mount -L soft /mnt/soft/"
|
||||
mount_archives="mount -L archives /mnt/archives/"
|
||||
mount_git="mount -L git /mnt/git"
|
||||
|
||||
os.system(mount_archives)
|
||||
os.system(mount_sys)
|
||||
|
|
|
@ -4,12 +4,10 @@ import os,sys
|
|||
|
||||
#挂载移动硬盘
|
||||
cmdInitMountMove=[
|
||||
"mount -L moble /mnt/moble",
|
||||
"mount -L soft /mnt/soft",
|
||||
"mount -L git /mnt/git",
|
||||
"mount -L sys /mnt/sys",
|
||||
"mount -L cloud /mnt/cloud",
|
||||
"mount -L mirror /mnt/mirror",
|
||||
"mount -L usr /mnt/usr"]
|
||||
#挂载aliyun oss
|
||||
cmdInitMountAliyunOSS="ossfs share-1 /mnt/aliyun_oss/ -ourl=oss-accelerate.aliyuncs.com"
|
||||
|
@ -17,9 +15,8 @@ cmdInitMountAliyunOSS="ossfs share-1 /mnt/aliyun_oss/ -ourl=oss-accelerate.aliyu
|
|||
cmdInitDevpi="nohup devpi-server --host=0.0.0.0 --port=8080 \
|
||||
--role=master --serverdir=/mnt/usr/pypi/ --start &"
|
||||
cmdInitPHP="php-fpm"#初始化php=fpm服务
|
||||
cmdInitUwsgi="uwsgi --ini soulrace.ini "#初始化uwsgi
|
||||
cmdInitNginx="nginx"#启动nginx
|
||||
cmdInitPgsql="postgres -D /mnt/moble/pgsql/data/ > logfile &"#启动pgsql数据库
|
||||
cmdInitPgsql="postgres -D /mnt/usr/pgsql/data/ > logfile &"#启动pgsql数据库
|
||||
#初始化baget服務
|
||||
cmdInitBaget="nohup dotnet BaGet.dll &"
|
||||
#执行命令列表
|
||||
|
@ -43,10 +40,10 @@ def suUserExecCmd(cmd,user):
|
|||
os.system(cmdInitPgsql)
|
||||
if __name__=="__main__":
|
||||
execCmdList(cmdInitMountMove)#挂载移动硬盘
|
||||
os.system(cmdInitMountAliyunOSS)
|
||||
#os.system(cmdInitNginx)
|
||||
os.system(cmdInitPHP)#启动php-fpm
|
||||
os.system(cmdInitDevpi)#启动devpi
|
||||
#启动网站
|
||||
chdirExecCmd(cmdInitUwsgi,"/usr/local/nginx/html/soulrace")
|
||||
#启动nginx
|
||||
os.system(cmdInitNginx)
|
||||
#启动baget
|
||||
|
|
Loading…
Reference in New Issue