遇到的错误解决方法

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

-----------------------------

解决方法:

修改DNS配置

到/etc目录下配置resolv.conf加入nameserver IP,如:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
保存再次运行上面命令就可以。
-----------------------------------------------------------------
gzip: stdin: unexpected end of file
tar: Unexpected EOF in architar:
Unexpected EOF in archiveve
tar: Error is not recoverable: exiting now
-----------------------------------------------------------------
解决方法:下载文件有错误,重新下载。然后 tar xf 文件【这个是这样子的解压】
 
-------------------------------------------------------------------------------------
20150324
mysql启动的时候遇到这个错误
[root@iZ25sgya7raZ log]# /etc/init.d/mysqld start
Starting MySQL.. ERROR! The server quit without updating PID file (/home/wkubuntu/mysql/data/iZ25sgya7raZ.pid).
 
解决方案:【查看错误日志文件log /usr/local/mysql/data 下的err文件有助于解决问题】
vi /etc/my.cnf  
skip-locking 修改成 skip-external-locking
重启/etc/init.d/mysqld start  【有的时候需要把apache也重启,就可以success】
 
070316 12:41:35 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
070316 12:41:35 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
070316 12:41:35 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
070316 12:41:35 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
070316 12:41:36 InnoDB: Started; log sequence number 0 0
/usr/libexec/mysqld: ready for connections.
Version: '4.1.12' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
----------------------------------------
 
-------------------------------
2015年3月24日
cms房地产系统,又把这个配置文件改回来
  skip-locking注释掉
修改为skip-external-locking,修改成即可以用
原文地址:https://www.cnblogs.com/bluewelkin/p/4353152.html