05 2016 档案

摘要:最近在做mysql数据库迁移的时候,出了很多问题,有自己的粗心大意,也有对mysql的不熟悉,因此决定从头开始认真巩固mysql基础! 我选取了《mysql 5.5从零开始学》并佐以《高性能mysql》希望能在数据库这块有更深的认识 DESCRIBE table 查看表结构 查看表详情 show c 阅读全文
posted @ 2016-05-26 19:00 知_行 阅读(245) 评论(0) 推荐(0)
摘要:#!/usr/local/bin/python3.5import pymysqlimport time sum = 0 while True:#open db connection db = pymysql.connect('localhost','root','abc-123','test') # 阅读全文
posted @ 2016-05-25 10:56 知_行 阅读(1548) 评论(0) 推荐(0)
摘要:#通过web界面查看时Nginx需要开启status模块,也就是安装Nginx时加上 --with-http_stub_status_module 然后配置Nginx.conf,在server点里面加入如下内容 location /status {stub_status on;access_log 阅读全文
posted @ 2016-05-20 10:46 知_行 阅读(713) 评论(0) 推荐(0)
摘要:配置管理界面 打开链接 http://192.168.1.201:8080/manager/status 设置最大内存 [root@short bin]# more catalina.sh #!/bin/shJAVA_OPTS='-server -Xmx6144m -Xms6144m' END! 阅读全文
posted @ 2016-05-19 19:16 知_行 阅读(1828) 评论(0) 推荐(0)
摘要:1,wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 2,wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm yu 阅读全文
posted @ 2016-05-19 15:11 知_行 阅读(194) 评论(0) 推荐(0)
摘要:#在网上搜了个swap分区占用情况的脚本,用了感觉蛮好,特别留下来了,注释并优化之echo '----------------------# '`date "+%Y%m%d %H%M"`' #----------------------------' for i in `ls -d /proc/* | grep -E '/[0-9]+$'` #显示所有proc下的文件,并匹配该目录下所有以数字开... 阅读全文
posted @ 2016-05-19 00:32 知_行 阅读(582) 评论(0) 推荐(0)
摘要:#!/bin/bash#/usr/local/xxx/bin/xxxx.sh start#/usr/local/xxx/bin/startup.shfor i in `find /server -name start.sh` do fadir=`dirname $i` //读取父目录 cd $fad 阅读全文
posted @ 2016-05-14 23:38 知_行 阅读(1302) 评论(0) 推荐(0)
摘要:#!/bin/env pythonimport os,sysDir = os.popen("basename /root/day1/myfire.py")print Dir.read().strip('\n') 另一种获取文件名和其路径的方法 在工作中遇到很多ICE启动后进程名都一样,难以分辨,现在 阅读全文
posted @ 2016-05-14 23:35 知_行 阅读(313) 评论(0) 推荐(0)
摘要:1,开启root 启用root sudo passwd root 2次输入密码后即可 2,开启root远程 将PermitRootLogin without-password 修改为PermitRootLogin yes 3,设置固定IP vim /etc/network/interfaces if 阅读全文
posted @ 2016-05-14 21:17 知_行 阅读(290) 评论(0) 推荐(0)
摘要:通过JMX连接远程机器, 需要经过下面的配置:1. 修改远程机器JDK配置文件 (我这里远程机器是linux). a.进入JAVA_HOME\jre\lib\management\目录 b.拷贝jmxremote.password.template这个文件到当前目录, 并改名为jmxremote.p 阅读全文
posted @ 2016-05-13 17:03 知_行 阅读(1403) 评论(0) 推荐(0)