# run 运行命令
运行 SSCMS 系统命令,用于无需 Nginx 或 IIS 中间件环境下体验或快速启动 SSCMS。
TIP
run 运行命令用于无需配置 Nginx 或者 IIS 环境下快速启动,正式部署请勿使用。
# 用法
sscms run
-h, --help
# 选项
选项 | 简写 | 说明 |
---|---|---|
--help | -h | 命令说明 |
run 命令直接将启动并运行当前目录下的 SSCMS 系统,run 命令通常用于体验及快速启动,正式部署请勿使用。
# 示例
我们进入 /var/www
文件夹,运行下载安装包命令:
sscms install download
Do you want to install SSCMS in /var/www ? [Y/n] Y
Downloading SSCMS 7.3.0...
SUCCESS 7.3.0 download successfully!
Database type(mysql,sqlserver,postgresql,sqlite): sqlite
Protect settings in sscms.json? [Y/n] n
SUCCESS SSCMS was download and ready for install, please run: sscms install database
下载安装包命令运行成功后,我们可以接着运行安装数据库命令,完成 SSCMS 安装:
sscms install database
Super administrator username: <admin>
Super administrator password: <********>
SUCCESS Congratulations, SSCMS was installed successfully!
完成安装后,我们可以通过 run 命令直接运行 SSCMS 系统(run 命令通常用于体验及快速启动,正式部署请勿使用):
sscms run
Starting SSCMS...
[09:26:45 WRN] Unknown element with name 'doc' found in keyring, skipping. <s:Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager>
[09:26:45 INF] Creating key {b1e20d90-5e72-4717-b137-dd1974171a6f} with creation date 2023-09-16 01:26:45Z, activation date 2023-09-16 01:26:45Z, and expiration date 2023-12-15 01:26:45Z. <s:Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager>
[09:26:45 WRN] No XML encryptor configured. Key {b1e20d90-5e72-4717-b137-dd1974171a6f} may be persisted to storage in unencrypted form. <s:Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager>
[09:26:45 INF] Writing data to file '/var/www/key-b1e20d90-5e72-4717-b137-dd1974171a6f.xml'. <s:Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository>
[09:26:45 WRN] Unknown element with name 'doc' found in keyring, skipping. <s:Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager>
[09:26:46 INF] Now listening on: http://localhost:5000 <s:Microsoft.Hosting.Lifetime>
[09:26:46 INF] Application started. Press Ctrl+C to shut down. <s:Microsoft.Hosting.Lifetime>
[09:26:46 INF] Hosting environment: Production <s:Microsoft.Hosting.Lifetime>
[09:26:46 INF] Content root path: /var/www <s:Microsoft.Hosting.Lifetime>