收录我在Linux中遇到的错误及解决方法

文章类别 in bug

使用yum安装的时候404

Error: Could not retrieve mirrorlist http://poptop.sourceforge.net/yum/stable/mirrorlist-poptop-stable-rhel7 error ….

Fix

  1. rm /etc/yum.repos.d/pptp.repo
  2. yum update

tomcat启动很慢

INFO: At least one JAR was scanned for TLDs yet contained no TLDs….

Fix

vi /usr/local/jdk1.8/jre/lib/security/java.security

修改: #securerandom.source=file:/dev/random securerandom.source=file:/dev/./urandom

Linux设置Tomcat/MySQL开机自启动

Fix

  1. vi /etc/rc.d/rc.local

``` sudo service mysqld start

 sudo /usr/local/tomcat/bin/startup.sh

```

  1. chmod +x /etc/rc.d/rc.local