# install download 下载安装包命令

下载安装包命令,用于下载最新版本的安装包至当前文件夹并设置 sscms.json 配置文件。

TIP

install download 命令通常与 install database 配合使用,下载最新版本 SSCMS 系统并安装 SSCMS 至数据库,共同完成 SSCMS 的安装。

我们还可以接着运行 run 运行命令,直接运行体验 SSCMS 系统。

# 用法

sscms install download
    -h, --help

# 选项

选项 简写 说明
--help -h 命令说明

install download 命令将下载 SSCMS 最新版本至当前文件夹并设置需要安装的数据库类型等信息。

# 示例

我们进入 /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>
上次更新: 2024/2/19 上午8:48:04