PROJECT SOURCE

ops-course.service

系统学习/项目/05-资产API/deploy/ops-course.service

配套学习源码,可下载后在本机运行。

下载原文件 ↓ 下载完整学习资料 ZIP

[Unit]
Description=Ops course authenticated platform (local lab)
After=network.target

[Service]
Type=simple
User=opscourse
Group=opscourse
WorkingDirectory=/opt/ops-course/current
EnvironmentFile=/etc/ops-course.env
Environment=PYTHONUNBUFFERED=1
Environment=PYTHONUTF8=1
Environment=PYTHONDONTWRITEBYTECODE=1
ExecStart=/usr/bin/python3 /opt/ops-course/current/secure_server.py --db /var/lib/ops-course/platform.sqlite3 --port 8096 --origin ${OPS_ORIGIN}
Restart=on-failure
RestartSec=3
TimeoutStopSec=15
KillMode=mixed
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/ops-course

[Install]
WantedBy=multi-user.target

输入关键词,查找课程与配套源码。