由于不兼容(与 cookie 相关),我想将 AWS AMI 中的 tomcat 8.5.16 降级为 tomcat 8.0.46。亚马逊刚刚在过去一天自动更新了它。
我尝试了以下操作,但没有成功:
[root@xxx ec2-user]# sudo yum downgrade tomcat8
Loaded plugins: priorities, update-motd, upgrade-helper
36 packages excluded due to repository priority protections
Nothing to do
我不想毁掉整个
yum history undo <id number>
还有其他选择吗?
顺便说一下,我的机器是:
[root@ip-xxxx ec2-user]# uname -a
Linux ip-xxxx 4.9.51-10.52.amzn1.x86_64 #1 SMP Fri Sep 29 01:16:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
谢谢
答案1
亚马逊记录在案发行说明:
Known issues
Since we've moved from tomcat 8 to tomcat 8.5, there may be a few minor backwards incompatibilities.
对我来说,轻微的不兼容性导致我无法再登录我的应用程序。
他们不让你轻易回去...但是你可以。
sudo vim /etc/yum.conf
进行以下更改:
#releasever=latest
releasever=2017.03
然后你就可以使用 yum 降级了:
sudo yum downgrade tomcat8 tomcat8-admin-webapps tomcat8-lib tomcat8-servlet-3.1-api tomcat8-el-3.0-api tomcat8-jsp-2.3-api
yum 的冗长输出证实了将会发生什么:
...
---> Package tomcat8.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8.noarch 0:8.5.16-1.74.amzn1 will be erased
---> Package tomcat8-admin-webapps.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8-admin-webapps.noarch 0:8.5.16-1.74.amzn1 will be erased
---> Package tomcat8-el-3.0-api.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8-el-3.0-api.noarch 0:8.5.16-1.74.amzn1 will be erased
---> Package tomcat8-jsp-2.3-api.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8-jsp-2.3-api.noarch 0:8.5.16-1.74.amzn1 will be erased
---> Package tomcat8-lib.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8-lib.noarch 0:8.5.16-1.74.amzn1 will be erased
---> Package tomcat8-servlet-3.1-api.noarch 0:8.0.46-1.76.amzn1 will be a downgrade
---> Package tomcat8-servlet-3.1-api.noarch 0:8.5.16-1.74.amzn1 will be erased
...
开心快乐。我期待着 Tomcat 8.5 能尽快面世。但不是今天。