文章目录

平常心博客

平常心的日常积累

标签: Linux (2)

【转载】启动tomcat时,一直卡在Deploying web application directory这块的解决方案 有更新!

1、现象

Tomcat在启动时一直卡在Deploying web application directory这句日志上,日志如下:

[root@iz8vbdzx7y7owm488t4d89z bin]# tail -f ../logs/catalina.out
09-Jun-2017 15:57:06.666 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
09-Jun-2017 15:57:06.667 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
09-Jun-2017 15:57:06.667 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 535 ms
09-Jun-2017 15:57:06.684 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
09-Jun-2017 15:57:06.684 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.15
09-Jun-2017 15:57:06.690 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/apache-tomcat-8.0.15-server/webapps/ROOT

【转载】Centos 7 使用Yum 安装 MySQL 有更新!

1、介绍

centos 从7 开始将原先自带的MySQL被更替为mariadb,默认情况下推荐安装mariadb或Percona,如果对于原版有比较深的情节,可以按照如下方式进行安装。

2、安装YUM Repo

Repo地址可从官方获取:https://dev.mysql.com/downloads/repo/yum/
5066d619c9a54eb086fd72ae891325e1-mysql.png
这里选择的是 Red Hat Enterprise Linux 7 / Oracle Linux 7 (Architecture Independent), RPM Package(原因是CentOS就是RedHat重新编译的版本)。下载地址可以点击链接查看,或自己按照规则拼接:
wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
完成后可以检测下md5是否与页面上的一致:
md5sum mysql57-community-release-el7-9.noarch.rpm
然后进行repo的安装:
rpm -ivh mysql57-community-release-el7-9.noarch.rpm