tnd,装个mariadb这么费劲,我是喜欢看着编译刷刷刷的跑的,所以这次也不例外,但是会出种种问题。sudo apt-get install
libwrap0-devcmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/mariadb
-DWITH_LIBW...
分类:
数据库 时间:
2014-05-08 14:43:39
阅读次数:
378
http://blog.panks.me/posts/2013/11/install-gdb-on-os-x-mavericks-from-source/注意最后两步:killall
taskgated (不行可以加sudo)codesign -fs gdbc /usr/local/bin/gdb ...
分类:
数据库 时间:
2014-05-08 13:53:15
阅读次数:
304
TARGET_IPHONE_SIMULATOR和TARGET_OS_IPHONE 是苹果的两个宏定义,
在真机sdk中位于ios->usr/include/targetconditionals.h中,
在模拟器sdk中位于simulator->usr/include/targetconditionals.h中
(笔者此时使用的xcode版本为5.1,sdk版本是7.1)
仔细看其模...
分类:
移动开发 时间:
2014-05-07 23:02:07
阅读次数:
450
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951
Check nagios配置文件报错如下:[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios Core 4.0.6Copyright (c) 2009-present Nagios Core Development Team and Community Contributor...
分类:
移动开发 时间:
2014-05-07 15:47:14
阅读次数:
449
使用notepad++编辑本地文件 tomcat:
/usr/tomcat/logs/catalina.out {
copytruncate
daily
dateext
nocompress
missingok
}
参考下图部署此文件到linux服务器:...
分类:
系统相关 时间:
2014-05-07 15:43:16
阅读次数:
462
案例4视图viwer拓扑图:1.查看帮助[root@centos~]#vim/usr/share/doc/bind-9.8.2/sample/etc/named.conf[root@host2~]#cd/var/named/chroot/etc2.[root@centosetc]#vimnamed.conf添加视图:36view"lan-view"37{38zone"."IN{39typehint;40file"named.ca";41};42zone"ab.com"{43t..
分类:
系统相关 时间:
2014-05-07 15:33:16
阅读次数:
618
Downloading the module:sudo apt-get install
python-tksimple example:#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode
Tkinter tutorialThis script sho...
分类:
编程语言 时间:
2014-05-07 14:46:05
阅读次数:
454
#pwd#/usr/src/linux-2.6.37#ctags –R * ## 递归建立
tags文件$vi -t tag ## -t 是参数 tag是要查找的变量/函数名ctrl+] 跳转函数定义ctrl+t
跳回函数调用处-----------------------------若一个函数在多...
分类:
其他好文 时间:
2014-05-07 14:02:33
阅读次数:
566
linux中除了常见的读(r)、写(w)、执行(x)权限以外,还有3个特殊的权限,分别是setuid、setgid和stick
bit1、setuid、setgid先看个实例,查看你的/usr/bin/passwd 与/etc/passwd文件的权限[root@MyLinux ~]#
ls -l /...
分类:
系统相关 时间:
2014-05-07 12:53:07
阅读次数:
365