上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

2014年3月18日

摘要: Check the current sshd status:service sshd statusStart sshd service:service sshd startSet sshd autostart on system startupchkconfig sshd onList the current autostart statuschkconfig --list |grep sshdO... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(162) 评论(0) 推荐(0)
摘要: 下面的程序演示了一个对象被两个线程访问的方法,"monitor.gotMessage();"这一句虽然是monitor对象的方法,但却是运行在"MyObject"的线程里,而不是"monitor"线程里。 BusyWaiting.java:public class BusyWaiting { public static void main(String[] args) { Monitor... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(261) 评论(0) 推荐(0)
摘要: 我们需要将文字保存在磁盘上,但磁盘上只能存储0和1(实际上是存储介质的两种状态),不能存储文字,这就出现了一个问题,如何将文字转换为二进制数字串?文件的编码/解码就是解决文字二进制串这一环节如何相互转换的问题。简单地说,GBK和Unicode分别是一种码表,也就是为每一个字符指定一个两个字节组成的代码,例如 “汉”字的Unicode编码为0x6C49,GBK编码为0xBABA(0x是一个字头,表示... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(211) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/2014636/how-to-maintain-an-emacs-based-knowledge-base 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(102) 评论(0) 推荐(0)
摘要: 使用shell时经常要知道当前路径,如果将它写在提示符里很节省很多敲pwd的动作,方法是在启动文件(.bash_profile, .bashrc)里加上:export PS1="[\u@\h \w]\$ "效果如下:[godu@NOP2-HWXX /opt/godu/terracotta-2.7.2]$ pwd /opt/godu/terracotta-2.7.2如果想持久化此效果,在~/.bas... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(236) 评论(0) 推荐(0)
摘要: 例如有一段文本,将所有CTRL替换为ctrl,将所有A替换为a,也就是执行了:%s/CTRL/ctrl/g和:%s/A/a/g两条命令,然后进行了很多其他编辑,最后关闭VIM。 后来又有一段文本,也需要将所有CTRL替换为ctrl,将所有A替换为a,这时候不需要重新敲上面两个命令,只需要输入:%s,然后按向上键,:%s/CTRL/ctrl/g就自己跑出来了。 如果不确定以前用过这个命令没有,可... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(634) 评论(0) 推荐(0)
摘要: Download bitnami installer: bitnami-redmine-2.4.1-1-linux-installer.run$ chmod 755 bitnami...installer.run (run as a common user)$ ./bitnami...install.runyou choose a installation destination (as $RED... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(165) 评论(0) 推荐(0)
摘要: 安装libevent;安装greenlet: sudo easy_install gevent (need net access)bingo!-> python-dev -> libpython2.7deb包下载网站 ;sudo dpkg -i libpython2.7_2.7.2-5ubuntu1_i386.deb2013-02-16:Ubuntu Server 12.04上自带python 2... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(1022) 评论(0) 推荐(0)
摘要: Download xampp for linux on Apache Friends, file name: xampp-linux-1.8.3-2-installer.run;Intallation guide: Linux FAQs on Apache Friends$ chmod 755 xampp-linux-1.8.3-2-installer.run$ sudo ./xampp-linu... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(255) 评论(0) 推荐(0)
摘要: The following script auto login to server 49, send 2 commands and exit from the server.Create a automation script named "auto.sh":echo "open 10.0.2.49 -l gcp" sleep 2 echo "gcp" sleep 1 echo "ls" ... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(143) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

导航