摘要: $ sudo pacman -S postgresql$ sudo /etc/rc.d/postgresql start$ groups postgressu rootsu - postgres详细解释看:https://wiki.archlinux.org/index.php/PostgreSQL_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29给postgresql射密码$ su root# passwd postgres开始使用# su postgres建立数据库createdb test;进入数据库psql test;建一个叫cats的表:test. 阅读全文
posted @ 2012-07-02 23:25 Leo Forest 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/wangkangluo1/archive/2012/06/15/2550821.html原文链接samba clientubunturedhat1,列出某个IP地址所提供的共享文件夹smbclient-L 198.168.0.12,在security=share模式下访问一个匿名可以访问的目录smbclient //192.168.0.1/目录名3,像FTP客户端一样使用smbclientsmbclient//192.168.0.1/tmp -U username%password4,例,创建一个共享文件夹smbclient-c " 阅读全文
posted @ 2012-07-02 11:43 Leo Forest 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.linuxidc.com/Linux/2011-05/35776.htmreadelf用来显示ELF格式目标文件的信息.可通过参数选项来控制显示哪些特定信息。(注意: readelf不支持显示archive文档, 也不支持64位的ELF文件)。使用方法1:查看共享库的依赖库(NEEDED)和搜索名(SONAME)。readelf -d <file_name>例如:#readelf -d libuClibc-0.9.30rc2.soDynamic section at offset 0x90f50 contains 18 entries:Tag Type 阅读全文
posted @ 2012-07-02 11:07 Leo Forest 阅读(611) 评论(0) 推荐(0) 编辑
摘要: CentOS 64位用c连接mysql 编译参数:-lmysqlclient 出错出错信息/usr/bin/ld: cannot find -lmysqlclient原因:libmysqlclient.so不在/usr/bin目录下,而是在/usr/lib64/mysql目录下解决:建一个软连接或者复制到/usr/bin目录下#cp /usr/lib64/mysql/* /usr/lib/ 阅读全文
posted @ 2012-07-02 10:30 Leo Forest 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: http://zetcode.com/tutorials/mysqlcapitutorial/ 阅读全文
posted @ 2012-07-02 10:22 Leo Forest 阅读(139) 评论(0) 推荐(0) 编辑