#!/bin/bash #Shell Command For Backup MySQL Database Everyday Automatically By Crontab USER=root PASSWORD="admin" DATABASE="nansha_car_manager" HOSTN... Read More
posted @ 2015-11-13 09:00 welkinok Views(191) Comments(0) Diggs(0) Edit
好文,参考http://blog.csdn.net/hexieshangwang/article/details/47187185 Read More
posted @ 2015-11-12 13:30 welkinok Views(115) Comments(0) Diggs(0) Edit
crontab -e---------linux定时任务提示-bash: crontab: command not found执行 crontab 命令如果报 command not found,就表明没有安装1、安装yum install -y vixie-cron2、启动service cron... Read More
posted @ 2015-11-09 11:03 welkinok Views(162) Comments(0) Diggs(0) Edit
必须有至少一个主分区(P),主分区个数+扩展分区个数<= 4个。创建完主分区,可以创建扩展分区(E),扩展分区可以有1个,或者没有(扩展分区)。主分区(Primary Partion)可以马上被使用但不能再分区。扩展分区(Extension Partion)必须再进行分区后才能使用,扩展分区不能直接... Read More
posted @ 2015-11-09 08:52 welkinok Views(378) Comments(0) Diggs(0) Edit
不通过ssh通道,mysql 授予远程连接直接访问语句GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY '!DSJdg!' WITH GRANT OPTION; 后来revoke 一下,错误。重新grant 出现错误。mysql> GRANT... Read More
posted @ 2015-11-06 16:40 welkinok Views(269) Comments(0) Diggs(0) Edit
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz tar zxvf setuptools-0.6c11.tar.gz cd setuptools-0.6c11 python s... Read More
posted @ 2015-11-05 16:00 welkinok Views(152) Comments(0) Diggs(0) Edit
tar xf Python-2.7.9.tar.xz cd Python-2.7.9./configuremakemake installln -s /usr/local/bin/python2.7 /usr/bin/pythonvim /usr/bin/yum 里面的python修改为 pyt... Read More
posted @ 2015-11-05 15:40 welkinok Views(132) Comments(0) Diggs(0) Edit
fabric 是一个python的库,fabric可以通过ssh批量管理服务器。第一步安装依赖包安装epel源1wget-O/etc/yum.repos.d/epel.repohttp://mirrors.aliyun.com/repo/epel-6.repo安装fabric依赖及pip12yumi... Read More
posted @ 2015-11-05 15:31 welkinok Views(572) Comments(0) Diggs(0) Edit
在Linux的文件系统中,保存在磁盘分区中的文件不管是什么类型都给它分配一个编号,称为索引节点号inode 。软连接,其实就是新建立一个文件,这个文件就是专门用来指向别的文件的(那就和windows 下的快捷方式的那个文件有很接近的意味)。软链接产生的是一个新的文件,但这个文件的作用就是专门指向某个... Read More
posted @ 2015-11-05 11:29 welkinok Views(231) Comments(0) Diggs(0) Edit
1.5内核参数调整修改/etc/sysctl.confNet.ipv4.ip_forward=1Net.ipv4.conf.all.rp_filter=0Net.ipv4.conf.default.rp_filter=0 【增加】sysctl –p1.6基础软件包安装在所有控制节点、存储节点、计算节... Read More
posted @ 2015-11-05 11:11 welkinok Views(156) Comments(0) Diggs(0) Edit