2014年11月12日
摘要: 转 http://www.linuxeden.com/html/develop/20100113/70060.html经常看到一些脚本中, 做一些简单的字符串处理/计算字符串长度,也动用管道+ awk/sed/cut等相对重量级工具:),其实大可不必, 因为bash本身就自带一些简单字符串处理功能,... 阅读全文
posted @ 2014-11-12 08:13 lion382 阅读(158) 评论(0) 推荐(0) 编辑
  2014年11月11日
摘要: 首先 jboss7 安装目录为/opt/jboss-as-7.1.1.Final进入/etc/systemd/system/cd/etc/systemd/system/新建jboss.servicevim /etc/systemd/system/jboss.service输入以下内容[Unit]De... 阅读全文
posted @ 2014-11-11 08:34 lion382 阅读(1059) 评论(0) 推荐(0) 编辑
  2014年11月6日
摘要: 修改vxworks的内核组件: 在 network components-->networking protocols-->core TCP/IP components-->TCPv4中的Params中,修改 TCP_CON_TIMEO_DFLT 从150 改为 60连接超时30秒。 在networ... 阅读全文
posted @ 2014-11-06 15:49 lion382 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: 网络问题解决2010-02-06 21:53:40|分类:vxWorks|举报|字号订阅1,网络出现问题,如rpccore后端客户RPC超时,未知网络接口,muxDevLoad失败,wdbConfig配置WDB通讯接口出错等,可以用网络调试函数来解决。2,若目标机开始运行时可以ping通,而运行自己... 阅读全文
posted @ 2014-11-06 15:46 lion382 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 1、在可以联网的机器上使用yum工具安装,如果未联网,则挂载系统光盘进行安装。# yum install samba samba-client有依赖关系的包samba-common、samba-winbind-clients、libsmbclient将自动安装上去。2、查看安装状况#rpm -qa|... 阅读全文
posted @ 2014-11-06 15:04 lion382 阅读(770) 评论(0) 推荐(0) 编辑
  2014年10月30日
摘要: #vncserverWarning: localhost.localdomain:1 is taken because of /tmp/.X11-unix/X1Remove this file if there is no X server localhost.localdomain:1Warnin... 阅读全文
posted @ 2014-10-30 16:20 lion382 阅读(4328) 评论(0) 推荐(0) 编辑
  2014年10月23日
摘要: 用synchronized(syncObject)看起来比较好如下:public class test_sync extends Thread {Integer x = 0;public test_sync() {} public void run() { try { Thread.sleep... 阅读全文
posted @ 2014-10-23 08:25 lion382 阅读(1548) 评论(0) 推荐(0) 编辑
  2014年10月17日
摘要: 下拉菜单Shape -> Select Shape or Void/Cavity点奇异点的边界,看到width为零的Line Segment 在Boundary层Ctrl+F5打开Color dialog对话框允许所有boundar Cavity显示下拉菜单EDIT ->DELETE ->Find选... 阅读全文
posted @ 2014-10-17 11:13 lion382 阅读(2155) 评论(0) 推荐(0) 编辑
  2014年10月15日
摘要: 首先 查看1.用ps -ef|grep postgres 查看进程是否已经启动;正常情况如下:postgres 1445 1 0 07:54 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432postgres 1853 1445... 阅读全文
posted @ 2014-10-15 09:16 lion382 阅读(1704) 评论(0) 推荐(0) 编辑
  2014年10月13日
摘要: 1.初始化数据库;yum install postgres*postgresql-setup initdb2.启动postgresql并设置为开机自启动;systemctl restart postgresqlsystemctl enable postgresql3.登进数据库看看状态;(可略)su... 阅读全文
posted @ 2014-10-13 17:00 lion382 阅读(1734) 评论(0) 推荐(0) 编辑