技术解析
1.我有一个主机是 CentOS7.6,先前安装了宝塔 Linux 面板并自动安装了 nginx。 [[email protected]_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 的版本报错如下: [[email protected]_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 再次进行安装: [[email protected]_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 的包: [[email protected]_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 的软件包? 谢谢各位大佬抽空帮我诊断。