Hyvi-Protecting Your Dream
Anddy · 共 124 篇文章
虚拟机centos静态配置IP
修改三个文件: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/resolv.conf 1,/etc/sysconfig/network [root@localhost ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no GATEWAY=192.168.123.254 HOSTNAME=localhost.localdomain 2,/etc/sysconfig/network-scripts/ifcfg-eth0 [roo…
2011-08-14 09:14 · Linux · 评论(0)
iptables 那点小知识
了解服务器防火墙 应该是玩服务器必须上的一课 。 linux的防火墙安全 的好坏 主要是 iptables 配置得如何,我认为。 于是乎,进入主题iptables的配置。(环境是centos 5.5) iptables 需了解的几个基本概念: TARGET , CHAINS(user-defined and built-in chains), TABLE 1. TABLE 描述如下: Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kerne…
2011-05-24 21:11 · Linux · 评论(0)
Mysql 主从备份 Duplicate entry for key PRIMARY
昨天检查mysql数据库 master-slave同步 是否出问题,果然出乎意料。 进入mysql SHOW SLAVE STATUS\G; 出现: Slave_SQL_Running: No 原因是: [ERROR] Slave SQL: Error 'Duplicate entry '349' for key 'PRIMARY'' on query. [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE STA…
2011-05-16 00:10 · mysql · 评论(0)
JVM 反汇编动态运行代码
Java HotSpot(TM) Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output CompilerOracle: dontinline *GenericClass.* Could not load hsdis-i386.so; library not loadable; PrintAssembly is disabled //尝试 输出动态的反汇编Code时 ,提示上面的错误。 没有hsdir这个可加载的反汇编的插件(an external…
2011-05-11 21:15 · java · 评论(3)
Android rpg 游戏开发
Android 游戏开发 记录点滴 rpg 游戏的地图编辑器 : mapwin汉化版(地图编辑器).rar 【见附件】 另外组内的另外一位童鞋使用的更强大的作图软件 叫 rpg maker XP 【20M 文件太大,需要的站内邮箱给我哈】
2011-04-23 15:36 · java · 评论(0)
linux 下文件监控
使用 inotify 监控文件系统的活动 参考: http://www.ibm.com/developerworks/cn/linux/l-ubuntu-inotify/index.html
2011-02-27 21:07 · Linux · 评论(0)
安装centos 问题集锦
问题:centos 网络安装后,无法使用grub 今天一天耗在这个上面了,centos 采用network installing, 先在局域网的一台电脑(比如自己的笔记本)上安装apache服务器,将centos的iso镜像文件解压到服务器的htdocs目录下。安装后grub无法输入任何命令。====时隔几天,在服务器上安装centos,又遇见同样的问题,看来不记录下来是不行的。这次采用是的局域网安装。安装成功后,重新引导,grub出现问题,一直闪烁,但是无法输入。无法回想其上次是怎么解决这个bug的。无比郁闷之后,仔细察看grub的基础操作:http://www.linuxsir.org/…
2011-02-27 19:06 · Linux · 评论(0)
重启服务器后无法远程登陆到mysql上
RT, aimicheng 连不上mysql ,而我碰到的问题是: 在服务器能用root帐号和密码登陆,但是用其他帐号和密码登陆不了,之后试了下其他帐号无密码登陆,却能登陆。后来想起,防火墙的原因,之前是把防火墙关闭的。 /etc/init.d/iptables stop 关闭之后再次查看 http://123.45.67.89 发现果然成功。但是貌似安全隐患大大增加……使用 /etc/init.d/iptables status 查看防火墙信息,可以看到打开的端口。 那么我们把需要使用的端口打开应该是一个比较可行的办法了,命令如下: /sbin/iptables -I INPUT -p t…
2011-02-27 19:05 · Linux · 评论(0)
Linux 常用命令
系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量 资源 # free -m # 查看内存使用量和交换区使用量 # df -h # 查看各分区使用情况 # du -sh <目录名> # 查看指定目录的大小 # grep MemTotal /proc/m…
2011-02-27 18:22 · Linux · 评论(0)
Ubuntu 常用的工具
以前都是下载virtualbox之后再 dpkg -i 安装,刚看他人blog发现心的方法,贴过来分享 sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian maverick non-free" wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - sudo apt-get update sudo apt-get install virtualbox-…
2011-02-25 17:07 · Linux · 评论(0)
开源软件/工具--mantisbt 使用时的注意点
mantisbt 是 bug管理平台 .. 初次使用会提示timezone的错误,解决办法是在php.ini 【我电脑的位置是/usr/local/lib/php.ini】 在[Date]中修改 timezone的值就OK了。 date.timezone = 'Asia/Chongqing' php 安装 ./configure --with-apxs2=/usr/apache/apache-2.2/bin/apxs --with-mysql --enable-sockets --prefix=/usr/php/php-5.3 还没安装pd、freetype等软件。 未完待续...
2011-02-25 14:45 · 项目学习 · 评论(0)
svn 和 apache和php 安装 遇到的问题集锦
svn : Unrecognized URL scheme 原因:没有安装libneon 。 解决 : 安装之后重新编译 安装。 svn 安装 配置语句 ; ./configure --with-apr=/usr/apache/apache-2.2/bin/apr-1-config --with-apr-util=/usr/apache/apache-2.2/bin/apu-1-config --with-apxs=/usr/apache/apache-2.2/bin/apxs --prefix=/usr/subversion/subversion-1.6 --with-ssl --enab…
2011-02-24 17:30 · Linux · 评论(0)
linux 下 flex 环境的安装
转载: http://www.beijibear.com/?aid=210 PS : Flex开发环境,开发工具,开发框架总结 http://hi.baidu.com/pengbincn/blog/item/af9f0055de6a5d133a2935c6.html windows 下 flash builder 4的破解 http://fireflylover.iteye.com/blog/708032
2011-02-16 01:52 · Flex · 评论(0)
xpath的使用遇到的问题
org.dom4j.InvalidXPathException: Invalid XPath expression: '/html'. Caused by: org/dom4j/Element 这是什么原因? 这样写xpath("/html")没有错吧。 ====================== 解决办法,去掉/jre/lib/ext/目录下的jaxen.jar包,把该jar包放在classpath目录下。[之所以把这个包放在这个目录下,原因是看到源码中的INSTALL文档如下描述的] INSTALL 写道 To install Jaxen, you need to place: jax…
2011-01-06 20:40 · java · 评论(1)
Standby Suspend Sleep and Hibernate
在linux下工作,经常不想把已经工作的环境全部关闭,每次开机都须重新开启eclipse等等。有时一下走神浏览下网页时间就过去了。看来还是用待机取代关机比较方便哈。 之前也听说过“待机”,“睡眠”等概念,以前的理解只是停留在表面。今天 深入了解下他们的区别 : 下面这篇文章转载自: http://www.cnitblog.com/yuhensong/archive/2008/06/18/45849.html 想看原版的请移步 如果觉得下文文字较多,看看多图文章 : http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=745…
2010-12-27 00:38 · Linux · 评论(3)