12 月 072012
 

卸载文件系统(默认600M容量)

[root@lvm ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_lvm-lv_roo 2.0G 557M 1.3G 30% /
tmpfs 499M 0 499M 0% /dev/shm
/dev/sda1 485M 40M 420M 9% /boot
/dev/mapper/vg_lvm-lv_tes 591M 17M 545M 3% /test
[root@lvm ~]# umount /test/
[root@lvm ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_lvm-lv_roo 2.0G 557M 1.3G 30% /
tmpfs 499M 0 499M 0% /dev/shm
/dev/sda1 485M 40M 420M 9% /boot
[root@lvm ~]#

Continue reading »

12 月 042012
 

创建用户

create user username identified by password;

username:用户名
以字母开头,字符数不超过30个,只能包含字母,数字,美元符号$和下划线。
字母区分大小写,默认自动转换为大写,不能使用保留字。
使用小写,非法字符,保留字需加双引号。
password:密码

sql>create user u2013 identified by pass2013;
 create user 成功。

修改用户密码

alter user username identified by pass2014;

Continue reading »

12 月 042012
 

#./vars

#./revoke-full client-name(common name)

#ls crl.pem

#cp crl.pem /usr/local/openvpn/etc/

#vi
crl-verify crl.pem

#service restart openvpn

Static IP
#vi server.conf
client-config-dir /etc/openvpn/ccd

#mkdir /etc/openvpn/ccd

#vi client-name
ifconfig-push 192.168.0.5 192.168.0.6
第一个IP结尾必须是4的倍数+1