码迷,mamicode.com
首页 >  
搜索关键字:linux 空间 mysql    ( 291899个结果
Unix How To: The Linux /etc/inittab file
OneofthefilesthattheaverageUnixsysadminrarelylooksat,almostneverchangesandyetdependsoneverytimeheorsherebootsasystemisthe/etc/inittabfile.Thismodestlittlefilecontrolswhathappenswheneverasystemisrebootedorforcedtochangerunlevels.Let‘stakealookattheconfigurat..
分类:系统相关   时间:2014-05-13 04:47:00    阅读次数:612
老男孩培训视频听课笔记七(在51cto上听的)--5.8 64bit 基础优化
Linux优化基础优化--Centos5.864bit 1.添加一个普通用户 注:平时操作时尽量不用root       useraddcysky  passwdcysky<enter>  newUnixpassword:20142014<enter>  或者:echo“12345..
分类:其他好文   时间:2014-05-13 04:35:40    阅读次数:394
Example LINUX init Script
Fromtimetotime,peoplewantmetocreateLINUXinitscriptsforthem.Iusuallyjusttakeanexistingoneforanotherserviceandchangeituptoworkformynewapplication,butmostofthemhavebecomesolongthesedaysthatIenduphavingtohackoutatonofcodejusttoreducethemdowntotheverybasicscript..
分类:系统相关   时间:2014-05-13 03:59:53    阅读次数:306
侧滑菜单的功能
侧滑功能需要用到开源项目,通过开源项目的使用,就能做到了。这个开源项目可以到githut网站中去查找到,有了这个,你就可以在项目中使用这个控件,munudraw,然后可以通过这个空间可以点出attch这个方法,然后运行,就可以看到,侧滑菜单。侧滑菜单,其实没有什么难的,只要你..
分类:其他好文   时间:2014-05-13 03:56:46    阅读次数:253
python管理mysql,请叫我雷锋
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:数据库   时间:2014-05-13 02:46:59    阅读次数:809
mysql慢查询日志切割,日志分析
#!/usr/bin/envpython#coding:utf8importos,sysimportdatetime,shutil,subprocessfromconfig.configimportslow_configclasscut_mysql(object):mysql_user,mysql_pass,date_day,slow_log_name,slow_log_path,mysqlsla_log_name,mysqldumpslow_log_name,new_log_path,new_log_nam..
分类:数据库   时间:2014-05-13 02:39:47    阅读次数:482
python批量同步web服务器代码核心程序
#!/usr/bin/envpython#coding:utf8importos,sysimportmd5,tabfrommysql_co.my_dbimportset_mysqlfromssh_co.ssh_connectimportsshdfromssh_co.cfg.configimportssh_message,item_pathfromfileimportfindfiledefmy_mysql():db_file={}my_connect=set_mysql()f_file=findfile.mai..
分类:编程语言   时间:2014-05-13 01:44:22    阅读次数:449
mysql集群
MySQL集群1、Mysql集群中服务器的角色:客户端:访问集群,访问工具mysql数据节点:存储表中的记录,至少2台Sql节点:客户端访问集群的接口,至少2台管理节点:管理集群中的所有主机,1台2、实验环境准备5台服务器,操作系统rhel6,能够正常通信ServicemysqlstopChkconfigmysql..
分类:数据库   时间:2014-05-13 01:17:39    阅读次数:507
Linux01-Linux网络配置38
一、网卡1、Linux:网络属于内核的功能2、网卡定义:a)RHEL5网卡定义文件:/etc/modprobe.confb)RHEL6网卡定义文件:/etc/udev/rules.d/70-persistent-net.rules3、网卡命名:a)lo:本地回环b)以太网网卡:ethXc)点对点连接网卡:pppX4、网卡配置命令a)ifconfig[ethX]:显示网卡信..
分类:系统相关   时间:2014-05-13 01:13:33    阅读次数:434
主从同步、代理
一、mysql主从同步(mysqlAB复制)1.1.目的实现数据的自动备份1.2.Mysql主从同步的结构一主一从一主多从主从从主主结构(互为主从)配置一主一从:公共配置:1、配置固定ip2、启动数据库服务3、关闭iptablesselinux4、物理连接没问题主从的UUID不能相同(/var/lib/mysql/auto.c..
分类:其他好文   时间:2014-05-13 01:06:20    阅读次数:483
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!