Tag Archives: centos

关闭centos IPV6

← Continue Reading
#vi /etc/modprobe.conf 添加下面两行内容 alias net-pf-10 off alias ipv6 off 保存退出,并且重新启动系统   然后查看一下 # lsmod |grep ipv6

SSH,telnet终端中文显示乱码解决办法 (CentOS)

← Continue Reading
方法一:配置SSH工具 SecureCRT中文版配置 [全局选项]→[默认会话]→[编辑默认设置]→[终端]→[外观]→[字体]→[新宋体 10pt CHINESE_GB2312]→[字符编码 UTF-8] 如果经常使用,把这些设置保存在session里面。 打开putty,登录成功后,在shell中输入:export LC_ALL='zh_CN.utf8' 方法二:配置系统 操作系统语言是中文,...

今天偶的DirectAdmin打不开了

← Continue Reading
前两天在杯具哥那儿买了套directadmin,装到了fdcservers的VPS上面,今天发现ip:2222无法打开directadmin了,按照网上面说的关闭iptables也不行,到directadmin论坛逛逛,发现竟然是2222端口默认到了IPv6上面了,关闭了IPv6才OK。 论坛发现的资料:http://www.directadmin.com/forum/showthread.php...

centos IPTables配置方法

← Continue Reading
需要的命令: 查看配置情况 iptables -L -n 记得保存 /etc/init.d/iptables save 添加input记录 iptables -A INPUT -p tcp –dport 22 -j ACCEPT 添加output记录 iptables -A OUTPUT -p tcp –sport 22 -j ACCEPT 一些软件的默认端口: ftp用到端口是 20 21 ss...

centos 下查看硬件信息

← Continue Reading
一:使用CentOS常用命令查看cpu more /proc/cpuinfo | grep "model name" grep "model name" /proc/cpuinfo [root@localhost /]# grep "CPU" /proc/cpuinfo model name      : Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz m...

修改centos的yum为163的源

← Continue Reading
收藏下centos的yum源,163提供的,速度也不错,备用。 [root@localhost yum.repos.d]# cp CentOS-Base.repo CentOS-Base.repo.bak [root@localhost yum.repos.d]# :>CentOS-Base.repo [root@localhost yum.repos.d]# vi CentOS-Base....

Linux/Centos安装Litespeed+PHP+MYSQL教程

← Continue Reading
最近一直在折腾litespeed,感觉这是一个超级节省资源的webserver,HOSTLOC的版主cat也在推荐使用。据说,只要IP/PV不过万,使用150限制的免费版,完全可以操得动。 安装测试环境,仍旧是DS2刀(详细介绍)的VPS。真的很耐操,系统采用的是centos 32bit版本,稍后我会上关于添加虚拟主机的教程。 首先要卸载apache,升级,以及安装一些支持库: yum -y i...

[转]centos安装rtorrent

← Continue Reading
原文链接:http://www.hostloc.com/viewthread.php?tid=15240 执行 cd /etc/yum.repos.d wget http://yum.aclub.net/pub/linux/centos/5/umask/umask.repo rpm --import http://yum.aclub.net/pub/linux/centos/5/umask/RPM...