Page tree
Skip to end of metadata
Go to start of metadata

活字格视频
倍速:
0.5X
1.0X
1.25X
1.5X
2.0X

1.描述

支持将活字格服务端安装到Linux系统,安装好后可以将应用发布到Linux的服务端。

您可以在Windows系统上访问应用,也可以登录管理控制台,管理应用。

2.支持的Linux系统

支持以下几个Linux系统:

  • Ubuntu 16.04
  • Ubuntu 18.04
  • CentOS 7(1804)
  • RedHat 7.6
  • 中标麒麟

3.安装活字格服务端到Linux系统

下面以中标麒麟为例,介绍安装活字格服务端的步骤。

操作步骤

  下载活字格服务端的Linux安装包“ForguncyServerService.tar”后,使用文件传输软件如xFTP将安装包保存到Linux系统的机器上,如保存到tmp文件夹下。

图1  保存安装包

  在Linux系统上安装活字格服务端。如果要连接Linux远程主机,需要提前安装SSH。

下面以使用XShell连接Linux远程主机为例,通过命令行来安装活字格服务端。

使用命令行导航到tmp文件夹下。

cd /tmp

  通过命令行解压文件。

sudo tar -xvf ForguncyServerService.tar

  通过命令行运行解压后的.sh文件来安装活字格服务端。

sudo bash installForguncy_cn.sh

运行后将安装.netCore软件包和GDI +软件包,然后安装活字格服务端。

安装过程大约需要几分钟。

  当显示以下内容时表示活字格服务端已经安装完成。

在Windows系统上访问红色框中网址来进入管理控制台。

图2  管理控制台

  安装好活字格服务端后,就可以将应用发布到Linux系统上。发布应用请参见发布网站

图3  发布应用

  登录安装在Linux上的活字格管理控制台,可以看到发布的活字格应用。您可以对应用进行管理。

图4  管理应用

4.卸载Linux系统上的活字格服务端

使用如下命令行卸载活字格服务端,卸载时不会删除用户数据。

sudo bash installForguncy_cn.sh -r

5.常用命令行

重启服务

sudo service ForguncyServerService restart

停止服务

sudo service ForguncyServerService stop

启动服务

sudo service ForguncyServerService start

查看状态

sudo service ForguncyServerService status

6.安装字体

将应用发布到Linux系统后,如果Linux系统中没有安装字体,那么导出应用中的页面/表格/数据透视表等到Excel/PDF中时,会出现乱码。因此您需要在Linux系统安装需要的字体。

操作步骤

  创建文件夹,如文件夹名称为“cn”。

sudo mkdir /usr/share/fonts/truetype/cn -p

也可以使用已有的文件夹“/usr/share/fonts/”。

  将需要的字体文件上传到活字格的存储字体的文件夹“/opt/ForguncyServer/Fonts/”中。

可使用文件传输软件如Xftp传输字体文件。

  将字体文件拷贝到创建的“cn”文件夹中。

sudo cp -r /opt/ForguncyServer/Fonts/* /usr/share/fonts/truetype/cn

  设置“cn”文件夹的读写权限。

sudo chmod 755 /usr/share/fonts/truetype/cn -R

  刷新字体缓存。

sudo fc-cache -f -v

如果未找到fc-cache,请安装fontconfig。

Ubuntu:

sudo apt install fontconfig

CentOS 7、RedHat 7.6、中标麒麟:

sudo yum install fontconfig


回到顶部

  • No labels

3 Comments

  1. Anonymous

    内网安装不成功

  2. Anonymous

    执行完sudo bash installForguncy_cn.sh后报:

    Failed dependencies:

    liblzma.so.5(XZ_5.1.2alpha)(64bit) is needed by dpkg-1.18.25-9.el7.x86_64
    liblzma.so.5(XZ_5.2.2)(64bit) is needed by dpkg-1.18.25-9.el7.x86_64
    Please install dpkg package first, before installing.

  3. Anonymous

    :~$ sudo bash installForguncy_cn.sh
    installForguncy_cn.sh: 第 43 行: [: ==:需要一元表达式
    installForguncy_cn.sh: 第 43 行: [: ==:需要一元表达式
    installForguncy_cn.sh: 第 60 行: [: ==:需要一元表达式
    Current version is DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=20.04
    DISTRIB_CODENAME=focal
    DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
    NAME="Ubuntu"
    VERSION="20.04.4 LTS (Focal Fossa)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 20.04.4 LTS"
    VERSION_ID="20.04"
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    VERSION_CODENAME=focal
    UBUNTU_CODENAME=focal
    Installation started…

    Checking internet…
    installForguncy_cn.sh: 行 186: curl:未找到命令
    installForguncy_cn.sh: 第 187 行: [: -eq:需要一元表达式
    Offline installation started…
    dotnet path: /usr/bin/dotnet.
    installForguncy_cn.sh: 行 440: /usr/bin/dotnet: 没有那个文件或目录
    Current installed .NetCore version is:
    [ERROR] Forguncy Server has a dependency on ASP.NET Core 3.1, which is not installed, so the installation is exiting. Please install ASP.NET Core 3.1 first.
    [INFO]: Asp.NetCore 3.1 download page is :https://dotnet.microsoft.com/download/dotnet-core/3.1
    [INFO]: You can see https://docs.microsoft.com/en-us/dotnet/core/install/linux for more infomation,or contact our technical support.