Tag Archives: CentOS

KVM安装Guest(CentOS+virtio)

1、创建虚拟镜像,raw格式
[shell]
#据说qow2会有问题,用virtio驱动
/usr/local/kvm/bin/qemu-img create -f raw test.img 10G
[/shell]
2、安装虚拟机的Guest OS
[shell]
#注意,一开始我们就启用了if=virtio
#因此,安装过程中会很顺利的识别出vda
sudo /usr/local/kvm/bin/qemu-system-x86_64 -m 512 -boot d -driv[......]

继续阅读

教育网CentOS如何用IPV6流量更新yum!

教育网好恶心。。V4算流量,很多还是国际。
好在我朝大学都是又IPV6的,可以直接用ipv6更新CentOS的yum源!
[shell]
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
wget -6 http://centos.ustc.edu.cn/CentOS-Base.repo
yum update
[/shell]
搞定![......]

继续阅读

vps初始配置

开机,内存使用36M,好强大...

0、更改密码
[shell]
#root登陆后,先更改密码,输入passwd后,连续两次新密码即可
passwd
[/shell]

1、安装vim

[shell]
#默认只有vi,没有vim...囧
yum install vim-enhanced
[/shell]

2、修改PS1
[shell]
vi /root/.bash_profile

# .bash_profile
# Get the aliase[......]

继续阅读

CentOS下配置ftp(vsftpd)

1、安装
yum install vsftpd
2、启动
/etc/init.d vsftpd start
3、配置
vim /etc/vsftpd/vsftpd.conf
更改为下列选项
#禁止匿名
anonymous_enable=NO
#可以写入
write_enable=YES
#Nginx多用户共享的需求
local_umask=002
#所有用户不能离开家目录
chroot_local_user=YES
#只允许userlist_file中列出的用户登录[......]

继续阅读