跳至主要内容

博文

目前显示的是 2012的博文

project myself

start to initial this project and track all the changes and happens. sub projects had been divided. project apartment project money project module project reading project learning project photos

NFS on redhat

     When we found the server with mount protocol has problem, the nfs server side, it has rpcinfo -p, the mountd port actually we are using 808/850 with tcp/udp port.     The workaround is that we modify /etc/services with specific port number, such as mountd 3333/tcp, mountd 3333/udp. then restart the nfs and portmap service.

Attitude

Attitude matters too When you see the right thing, do it — this may look like more work in the short term, but it's the path of least effort in the long run. If you don't know what the right thing is, do the minimum necessary to get the job done, at least until you figure out what the right thing is. To do the Unix philosophy right, you have to be loyal to excellence. You have to believe that software design is a craft worth all the intelligence, creativity, and passion you can muster. Otherwise you won't look past the easy, stereotyped ways of approaching design and implementation; you'll rush into coding when you should be thinking. Otherwise you'll carelessly complicate when you should be relentlessly simplifying — and then you'll wonder why your code bloats and debugging is so hard. To do the Unix philosophy right, you have to value your own time enough never to waste it. If someone has already solved a problem once, don't let pride or politics suck

nexus configuration

nexus是个很好的maven仓库管理器,官方网站为http://nexus.sonatype.org/ 安装nexus到tomcat: 1) 下载nexus-webapp-1.6.0.war 2) 解压nexus-webapp-1.6.0.war到tomcat安装目录下的webapps子目录下,并更名为"nexus" 3) 修改nexus的工作目录:编辑文件“webapps/nexus/WEB-INF/plexus.properties”,修改nexus-work的值为希望的工作目录,默认为nexus-work=${user.home}/sonatype-work/nexus,其中${user.home}为你当前用户的工作目录。 4) 配置maven使用nexus:编辑文件“ ${user.home}/.m2/settings.xml”,修改为如下配置:                   nexus       *       http://localhost:8081/nexus/content/groups/public                   nexus                                     central           http://central           true           true                                      central           http://central           true           true                               nexus   其中“http://localhost:8081/nexus”的访问路径,视你的实际部署情况可能端口并不一样,注意修改。 5) 启动tomcat,通过http://localhost:8081/nexus即可访问nexus的界面,默认的管理员帐号为admin,密码为admin123。 如何将自己项目的jar发布到nexus仓库: 1) 编辑文件“ ${user.home}/.m2/settings.xml”,增加如下配置: ......         nexus-releases       admin

solaris publisher

#mkdir /pkg #mkdir /repo #cat sol-11-1111-repo-full.iso-a sol-11-1111-repo-full.iso-b > sol-11-1111-repo-full.iso #vi /etc/rc3.d/S99mountpkg #!/bin/sh mount -F hsfs /pkg/sol-11-1111-repo-full.iso /repo #pkg unset-publisher solaris (if you set solaris as mirror directly, that will caused problem, they need connection directly to the original one) #pkg set-publisher -g  file:///repo/repo -P solaris #pkg publisher PUBLISHER                             TYPE     STATUS   URI solaris                               origin   online   file:///repo/repo/ #pkg update