Chinaunix首页 | 论坛 | 博客
  • 博客访问: 296265
  • 博文数量: 42
  • 博客积分: 365
  • 博客等级: 一等列兵
  • 技术积分: 528
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-12 20:59
文章分类

全部博文(42)

文章存档

2016年(1)

2015年(2)

2014年(15)

2013年(10)

2012年(14)

我的朋友

分类: 系统运维

2013-09-07 09:19:13

停止mysql
mysqladmin -u root -p shutdown

关闭以后
root@AY12121812263288b7466:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..



和apache


打包www目录
[root@linux ~]# tar -cvf /tmp/163trade20130907.tar /etc<==仅打包,不压缩!
[root@linux ~]# tar -zcvf /tmp/163trade20130907.tar.gz /etc<==打包后,以 gzip 压缩
[root@linux ~]# tar -jcvf /tmp/163trade20130907.tar.bz2 /etc<==打包后,以 bzip2 压缩


chgrp -R mysql trade  给trade目录mysql用户权限
chown -R mysql trade



tar -zxvf sql20140101.tar.gz -C /backup/2014



阅读(760) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~