V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
kitinone
V2EX  ›  Linux

CentOS 使用 yum 安装 onlyoffice-documentserver 报错 nginx 版本

  •  
  •   kitinone · 2020-03-07 10:06:11 +08:00 · 3880 次点击
    这是一个创建于 1518 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.我有一个主机是 CentOS7.6,先前安装了宝塔 Linux 面板并自动安装了 nginx。 [root@VM_0_15_centos ~]# yum list installed | grep nginx Repository epel is listed more than once in the configuration bt-nginx117.x86_64 1.17.8-1.el7 installed

    2.然后我安装 onlyoffice 的 doucmentserver,对于 nginx 的版本报错如下: [root@VM_0_15_centos ~]# yum install onlyoffice-documentserver Loaded plugins: fastestmirror, langpacks ... --> Finished Dependency Resolution Error: Package: onlyoffice-documentserver-5.5.0-165.x86_64 (onlyoffice) Requires: nginx >= 1.3.13 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

    3.我试着加上--skip-broken 再次进行安装: [root@VM_0_15_centos ~]# yum install onlyoffice-documentserver --skip-broken Loaded plugins: fastestmirror, langpacks Repository epel is listed more than once in the configuration Loading mirror speeds from cached hostfile Resolving Dependencies ... Packages skipped because of dependency problems: GConf2-3.2.6-8.el7.x86_64 from base adwaita-cursor-theme-3.28.0-1.el7.noarch from base ... onlyoffice-documentserver-5.5.0-165.x86_64 from onlyoffice ... 依然是不能成功。

    4.比较奇怪的是,我试过卸载掉 bt-nginx,然后使用 nginx-mainline 的官方源( http://nginx.org/en/linux_packages.html#stable )安装 nginx 官方包,却找不到 nginx 的包: [root@VM_0_15_centos ~]# yum --disablerepo="*" --enablerepo=nginx-mainline search nginx Loaded plugins: fastestmirror, langpacks Repository epel is listed more than once in the configuration Loading mirror speeds from cached hostfile =========================================================================== N/S matched: nginx ============================================================================ bt-nginx117.x86_64 : bt-panel nginx rpm nginx-debug.x86_64 : debug version of nginx nginx-debuginfo.x86_64 : Debug information for package nginx nginx-module-geoip.x86_64 : nginx GeoIP dynamic modules nginx-module-geoip-debuginfo.x86_64 : Debug information for package nginx-module-geoip nginx-module-image-filter.x86_64 : nginx image filter dynamic module nginx-module-image-filter-debuginfo.x86_64 : Debug information for package nginx-module-image-filter nginx-module-njs.x86_64 : nginx njs dynamic modules nginx-module-njs-debuginfo.x86_64 : Debug information for package nginx-module-njs nginx-module-perl.x86_64 : nginx Perl dynamic module nginx-module-perl-debuginfo.x86_64 : Debug information for package nginx-module-perl nginx-module-xslt.x86_64 : nginx xslt dynamic module nginx-module-xslt-debuginfo.x86_64 : Debug information for package nginx-module-xslt nginx-nr-agent.noarch : New Relic agent for NGINX and NGINX Plus unit.x86_64 : NGINX Unit unit-devel.x86_64 : NGINX Unit (development tools)

    我的问题是: 1.有没办法能跳过 nginx 的检测安装 onlyoffice-documentserver 成功? 2.为何 nginx-mainline 里面 yum search 不到 nginx 的软件包? 谢谢各位大佬抽空帮我诊断。

    9 条回复    2020-03-10 15:02:42 +08:00
    care
        1
    care  
       2020-03-07 12:44:09 +08:00 via iPhone
    装个 stable 版本试下或者用 docker
    defunct9
        2
    defunct9  
       2020-03-07 14:40:18 +08:00
    这个东西神烦,onlyoffice 的保存的东西有时候是非标准的 xlsx。这是个大坑。然后一般跟 nextcloud 之类的整合。
    用 snap 和 docker 是正解
    care
        3
    care  
       2020-03-07 15:00:50 +08:00 via iPhone
    @defunct9 我也打算弄一个来集成到 nextcloud 做在线预览,但是不爽 onlyoffice 用的 postgresql🤣
    flowercoder
        4
    flowercoder  
       2020-03-07 15:29:03 +08:00
    网盘+在线预览可以考虑夏 OneDrive+vps/或是直接上免费 scf 也可以,推荐可以测下速度搞,网上有 5t 教育空间那种。
    最近我在搞天翼云盘+vps 的方案,最近搞活动,这个是下载上传的速度真爽。
    aniua
        5
    aniua  
       2020-03-07 21:10:15 +08:00
    downloadonly 之后 rpm 强制安装试试
    kitinone
        6
    kitinone  
    OP
       2020-03-10 09:22:38 +08:00
    @defunct9 谢谢,我用 docker 安装是没问题
    kitinone
        7
    kitinone  
    OP
       2020-03-10 09:22:54 +08:00
    @aniua 谢谢,好的,我试试
    kitinone
        8
    kitinone  
    OP
       2020-03-10 09:23:30 +08:00
    @flowercoder 主要我们是内网使用,没法使用公网服务
    defunct9
        9
    defunct9  
       2020-03-10 15:02:42 +08:00 via iPhone
    提个需求。本来 google sheet 是满足需求的。国内有啥好的团队 excel,内网,带历史版本,支持多人同时编辑,支持 api。only office 已经搭了,不满意的地方在于它保持的文件不标准,不支持 python 库直接打开。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2194 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.