Centos 5使用tips
来源:互联网 发布:软件 开发的软件环境 编辑:程序博客网 时间:2024/06/05 23:03
想要配置一个centos 5.11的服务器
整理了一下碰到的坑
说在最前面~~
复制的时候记得检查一下有没有中文符号,或者奇奇怪怪的编码的符号,需要修改的文件记得提前备份,有可能解决方案并不适合你。本命令大概就是 cp xxx xxx.bak,xxx是你即将操作的文件名
centos的源已经换掉了,需要更新yum的配置
报错如下:Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. /
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base解决方案如下
1.ping一下地址vault.centos.org,如果ping不同,再见~
2.编辑文件 vim /etc/yum.repos.d/CentOS-Base.repo
找到所有baseurl=,把后面的链接中通用的地址部分改为vault.centos.org存储了多个源文件
报错如下:Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration解决方案如下
打开文件夹 cd /etc/yum.repos.d
与base相关的只保留一个,我之前是下了一个163的,结果与本来的重复了中文乱码
1.查一下有没有中文包yum grouplist | grep zh
2.没有的话安装中文包
yum groupinstall “Chinese Support”
3.修改配置文件
vim /etc/sysconfig/i18n
编辑
LANG=”zh_CN.gb2312”
LANGUAGE=”zh_CN.gb18030:zh_CN.gb2312:zh_CN”
SUPPORTED=”zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en”
SYSFONT=”lat0-sun16”
- Centos 5使用tips
- CentOS Tips
- Centos - tips
- CENTOS some tips
- tips使用
- Phoenix Tips (5) 使用任意时间戳
- MySQL使用tips
- mplayer使用tips
- GridView使用tips
- zz:SourceInsight3使用Tips
- Linux使用小tips
- Word2010使用tips
- Linux系统使用Tips
- erlang使用Tips
- OpenBSD Tips: 使用ports
- chipscope使用tips
- fifo使用tips
- iOS内存使用tips
- android智能指针之轻量级指针
- 安卓-Application Android.mk
- pubsub 设计模式
- jsonp的使用
- 赋值方式触发input的change事件
- Centos 5使用tips
- KMP算法 字符串匹配
- Kotlin 踩坑日记(二) dagger2 Java8 的支持错误
- 第一阶段第九天(函数递归调用,一维数组)
- Centos下安装Dubbo管理控制台
- liunx常用命令
- android注解与反射、ButterKnife实现
- npm本地化仓库Sinopia
- UnityAI行为------群组行为CraigReynold算法