The trick is to add environment variables to sudoers file via sudo visudo command and add these lines: ...
分类:
其他好文 时间:
2016-10-10 23:08:45
阅读次数:
140
在第一次的词频统计中,对JProfile 款软件不是很熟悉,感觉数据不是很准确,在程序启动时JProfile总是提示Java虚拟机已退出,后来经过查阅知道解决方案:截图如下 要将 keep vm alive 勾选上。 程序总体总体情况如下: 当程序运行之后,cpu和内存的使用几乎在同一时间有一个明显 ...
分类:
其他好文 时间:
2016-09-28 22:32:16
阅读次数:
153
Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen ...
分类:
其他好文 时间:
2016-09-28 07:40:34
阅读次数:
95
在Linux上,可以轻松的使用forever或者pm2来部署nodejs应用。但是在windows下就麻烦了,pm2明确的说支持Linux & MacOS,forever在windows下貌似问题多多: 另外还有一个选择就是iisnode,这个有空研究一下,今天先说下比较简单的nssm。nssm会监 ...
The case is like this, I just want to keep a record, for today, for recently, for this whole year of 2015.9.27-2016.9.25. Now I am sitting in front of ...
分类:
其他好文 时间:
2016-09-25 23:32:12
阅读次数:
206
链接:http://bak.vjudge.net/problem/UVA-1153 分析:将n个工作按截止时间d从小到大排序。用优先队列维护在当前截止时间di下,实现完成工作数的最大化时,选取的各个工作的需要时间。每次取一个工作i,先把它扔进队列中(这样保证n个工作都进过队列,在后面我们只需记录下从 ...
分类:
其他好文 时间:
2016-09-23 06:34:53
阅读次数:
189
产品讲了他对于产品的理解。 1.think different 差异化竞争 2.Open Mind 用开放的态度对待新事物 3.KISS keep it simple,stupid 简洁的力量 沉没成本:代指已经付出且不可收回的成本。不该在做决策时考虑沉没成本 马太效应:反映的社会现象是两极分化,富 ...
分类:
其他好文 时间:
2016-09-14 19:11:02
阅读次数:
144
Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen ...
分类:
其他好文 时间:
2016-09-14 07:19:49
阅读次数:
226
nginx和tomcat实现动静分离,加快访问网站的速度。
工作流程就是
lvs---->keepalive---->nginx负载均衡---->tomcat
准备四台服务器:
1.web1:192.168.4.10
2.web2:192.168.4.11
3.keep_master:192.168.4.20
4.kepp_slave:192.168.4.21
web1和web2上:(web2一样)
ngin..
分类:
其他好文 时间:
2016-09-14 00:30:28
阅读次数:
214
When there are some property contents we want to keep, usually, we can use Property table to keep them. 2.Insert data to property table 3.Get the valu ...
分类:
其他好文 时间:
2016-09-13 17:44:18
阅读次数:
117