遇到的错误解决方法
2023-09-14 09:11:30 时间
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
nameserver 8.8.4.4
search localdomain
保存再次运行上面命令就可以。
-----------------------------------------------------------------
gzip: stdin: unexpected end of file解决方法:下载文件有错误,重新下载。然后 tar xf 文件【这个是这样子的解压】
tar: Unexpected EOF in architar:
Unexpected EOF in archiveve
tar: Error is not recoverable: exiting now
-----------------------------------------------------------------
-------------------------------------------------------------------------------------
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).
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
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,修改成即可以用
相关文章
- 【python】错误SyntaxError: invalid syntax的解决方法总结
- Ubuntu “Failed to fetch”错误的解决方法
- Windows net start mysql 启动MySQL服务报错 发生系统错误 5 解决方法
- 安装rpm包时提示错误:依赖检测失败的解决方法
- org.hibernate.id.IdentifierGenerationException错误解决方法详解编程语言
- 解决Linux协议出错:一种新方法(linux协议错误)
- 错误解决SQL Server登录错误的有效方法(sqlserver登陆)
- 解决Oracle常见错误:指南及方法(oracle常见错误)
- 「MySQL存储过程错误解决方法」(mysql存储过程出错)
- 错误解决Redis启动出现错误的方法(启动redis时出现)
- 解析Oracle 0002错误发生的原因和解决方法(oracle 0002)
- IIS6中"ASP0201错误无效的默认脚本语言"的解决方法
- MicrosoftJETDatabaseEngine错误'80004005'未指定的错误的完美解决方法
- CodeMirror2IE7/IE8下面未知运行时错误的解决方法
- rsync同步错误cwrsyncrsyncerrorrsyncerror:somefiles/attrswerenottransferred解决方法
- undefinedreferenceto`SetPduPowerConsumptionCnt'错误的解决方法
- 为PHP安装imagick时出现CannotlocateheaderfileMagickWand.h错误的解决方法
- MYSQL中TYPE=MyISAM错误的解决方法