首页 > 2017年08月07日 > 全部分享
4.创建数据库服务器(MySQL):
创建数据库服务器(MySQL):#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"..
分类:数据库技术   时间:2017-08-07 01:18:26    收藏:0  评论:0  赞:0  阅读:375
2.创建备份服务器: ntp+cron rsync --daemon
创建备份服务器:ntp+cronrsync--daemon#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfi..
分类:其他   时间:2017-08-07 01:18:15    收藏:0  评论:0  赞:0  阅读:227
3.创建NFS服务器:
创建NFS服务器:#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"crond|sshd|n..
分类:其他   时间:2017-08-07 01:18:05    收藏:0  评论:0  赞:0  阅读:351
16、MySQL数据库分库分表备份脚本
MySQL数据库分库分表备份脚本===================学员分享分库分表==========================脚本单双引号的区别:单引号是强引用,强制输出是所见即所得。双引号是解析变量和多个字符串、数字等连接一个字符串条件1||条件2或假真真假条件1&&条件2并真真假假!条件1&a..
分类:数据库技术   时间:2017-08-07 01:17:53    收藏:0  评论:0  赞:0  阅读:361
算法-堆排序
packagecom.java.algorithm.test; importorg.junit.Test; importjava.util.Arrays; publicclassHeapSortTest{ @Test publicvoidtestHeapSort(){ int[]A=newint[]{4,1,3,2,16,9,10,14,8,7}; this.heapSort(A); System.out.println(Arrays.toString(A)); } publicintleft(int..
分类:编程语言   时间:2017-08-07 01:17:31    收藏:0  评论:0  赞:0  阅读:301
查找文件的方法有这么多……
寻找不同时期不同大小的文件方法一:find/oldboy-typef-mtime+7-name"*.log"方法二:ls-l$(find/oldboy-typef-mtime+7-name"*.log")方法三:find/oldboy-typef-mtime+7-name"*.log"-execls-l{}\;方法四:find/oldboy-typef-mtime+7-size+50k-size-100k-name"*.log"方法五:find..
分类:其他   时间:2017-08-07 01:17:17    收藏:0  评论:0  赞:0  阅读:358
8.创建负载均衡服务器lb02:
创建负载均衡服务器lb02:#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"cron..
分类:其他   时间:2017-08-07 01:17:06    收藏:0  评论:0  赞:0  阅读:498
optimize 回收表空间的一些说明
optimize命令回收表空间的说明线上服务器,有张大表需要用pt-archiver根据时间划分归档大量数据到另一个新表中。原先200G的表,在归档完成后,du-hs显示依然是200G的大小,删除了大量的行记录但是实际上空间是不会释放的。这种情况下,我们就要使用optimize命令重建表以达到释..
分类:其他   时间:2017-08-07 01:16:53    收藏:0  评论:0  赞:0  阅读:466
cobbler通过koan安装系统,VM安装失败
cobbler通过koan安装系统,VM虚拟机有如下提示,不知道什么原因!
分类:其他   时间:2017-08-07 01:16:30    收藏:0  评论:0  赞:0  阅读:312
python 爬虫爬取 证券之星网站
周末无聊,找点乐子。。。#coding:utf-8 importrequests frombs4importBeautifulSoup importrandom importtime #抓取所需内容 user_agent=["Mozilla/5.0(WindowsNT10.0;WOW64)",‘Mozilla/5.0(WindowsNT6.3;WOW64)‘, ‘Mozilla/5.0(WindowsNT6.1)AppleWebKit/537.11(KHTML,likeG..
分类:编程语言   时间:2017-08-07 01:16:19    收藏:0  评论:0  赞:0  阅读:369
运维人员必备素质
目标,方法,努力,坚持
分类:其他   时间:2017-08-07 01:15:52    收藏:0  评论:0  赞:0  阅读:149
5.创建web服务器(LNMP):
创建web服务器(LNMP):#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"cron..
分类:Web开发   时间:2017-08-07 01:15:40    收藏:0  评论:0  赞:0  阅读:318
Centos6.7或7.2系统中 github配置及基本使用
1.安装yuminstallgitgit-gui2.生成密钥对ssh-keygen-trsa-C"github邮箱地址"1、首先要检查key是不是已经存在,2、打开一个终端,并输入以下命令:$ls-al~/.ssh如果结果列表中包含以下文件,则不需要在生成新的KEY,可以直接使用。id_dsa.pubid_ecdsa.pubid_ed25519.pubid_rsa.p..
分类:其他   时间:2017-08-07 01:15:31    收藏:0  评论:0  赞:0  阅读:194
linux云自动化系统运维20(vsftpd服务)
1.什么是ftpftp时internet上仍常用的最老的网络协议之一,它为系统提供了通过网络与远程服务器进行传输的简单方法2.安装ftpyuminstallvsftpd-yfirewall-config打开ftp服务,并且重新加载vim/etc/sysconfig/selinux将其设置为disable后重新启动systemctlstartvsftpdsystemctlena..
分类:系统服务   时间:2017-08-07 01:15:23    收藏:0  评论:0  赞:0  阅读:290
扩展正则表达式
扩展正则表达式-egrep====grep-E1.1+加号重复前一个字符一次或一次以上正则表达式里面,表示重复,连续出现,贪婪,有多少吃多少,有多少重复多少1.1.1找连续的0egrep-o"0"/oldboy.txtgrep-o"0+"oldboy.txt1.1.2找出a-z的连续字符egrep"[a-z]+"/oldboy.txt1.2|或者实例1-1取出3..
分类:其他   时间:2017-08-07 01:15:02    收藏:0  评论:0  赞:0  阅读:292
python连接数据库
#-*-coding:utf-8-*- importMySQLdb try: conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘123456‘,db=‘python_test‘,port=3306) cur=conn.cursor()#光标 cur.execute(‘usepython_test;‘) cur.execute(‘CREATETABLEtest(idchar(20));‘) cur.close() conn.c..
分类:数据库技术   时间:2017-08-07 01:14:51    收藏:0  评论:0  赞:0  阅读:263
7.创建负载均衡服务器lb01:
创建负载均衡服务器lb01:#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"cro..
分类:其他   时间:2017-08-07 01:14:36    收藏:0  评论:0  赞:0  阅读:299
linux云自动化运维基础知识21(selinux的初级管理)
1.什么是selinuxselinux,内核级加强型防火墙ELinux提供了一种灵活的强制访问控制(MAC)系统,且内嵌于LinuxKernel中。SELinux定义了系统中每个【用户】、【进程】、【应用】和【文件】的访问和转变的权限,然后它使用一个安全策略来控制这些实体(用户、进程、应用和文件)之间的..
分类:系统服务   时间:2017-08-07 01:14:27    收藏:0  评论:0  赞:0  阅读:301
1.创建管理机:ntp
创建管理机m01:ntp#optimizationbyonekeysed-i‘s#SELINUX=enforcing#SELINUX=disabled#‘/etc/selinux/configgrepSELINUX=disabled/etc/selinux/configsetenforce0getenforce/etc/init.d/iptablesstop/etc/init.d/iptablesstopchkconfigiptablesoffchkconfig|egrep-v"crond|ssh..
分类:其他   时间:2017-08-07 01:14:17    收藏:0  评论:0  赞:0  阅读:241
13.文件目录(特殊)权限管理
13.文件目录(特殊)权限管理普通权限rwx删除文件(修改文件名等)的权限是受到父目录的权限控制,和本身无关!suidsgidsticky-bit特殊权限位su和sudo的区别su相当于推翻皇帝自己当皇帝sudo相当于皇帝给你尚方宝剑SUID:对一个可执行文件,不是以发起者身份来获取资源,而是以可..
分类:其他   时间:2017-08-07 01:13:44    收藏:0  评论:0  赞:0  阅读:297
1463条   上一页 1 ... 65 66 67 68 69 ... 74 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!