V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  jhsea3do  ›  全部回复第 4 页 / 共 4 页
回复总数  73
1  2  3  4  
2017-05-25 13:19:42 +08:00
回复了 darluc 创建的主题 Node.js 用 NodeJS 打造影院微服务并部署到 docker 上 — Part 1
service discovery, 不想用 java 系的话

有 etcd 和 consul 可以选,etcd 更主流一些
2017-05-25 11:43:51 +08:00
回复了 gap 创建的主题 Python Python 程序员的是被称为 Pythonista 吗?还是 Pythoner?
barista 咖啡师
bartender 酒保

java 都是搞咖啡的

python 是卖酒的,比如 flask
2017-05-24 15:44:13 +08:00
回复了 SlipStupig 创建的主题 程序员 dcokerfile 想使用远程私有的 Repo
@SlipStupig

不知道你的代码工程是啥语言,我制作 docker image 不会把源代码放到容器里面,
所以我都在主机上先 pull, 然后 make compile+package
然后 Dockerfile 里面用 ADD 指令把 package 拷贝到容器里面

然后多个版本用 tag 区别,比如我做一个 myapp 的工程

myapp:1.0-centos6
myapp:1.0-xenial
myapp:1.5-xenial-py3

java 用 maven (jar/war)
node 用 uglify + tar ball ...
python 的话 至少也要 tar ball 的

如果你 shell 不熟练,还是用 jenkins,把 scm 的动作交给 jenkins 帮你做掉


我之前回答的 development keys 是我说错了,应为 deploy keys
2017-05-23 17:22:53 +08:00
回复了 SlipStupig 创建的主题 程序员 dcokerfile 想使用远程私有的 Repo
难道你在用

RUN \
git clone https://xxx/xxx

写个 build.sh 来 build image, 或者用 jenkins 把

至少做个 development key, 把私钥到处拷贝,不是什么好事 - -"
多谢 @sobigfish

公司的普通静态网站,就开了个 80 端口,我都没有考虑过

刚查了一下,是 1 月份的事情,被扫描了


23.251.63.45 - - [16/Jan/2017:08:41:12 +0000] "GET http://www.sbjudge2.com/azenv.php HTTP/1.1" 404 571 "-" "Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/5.0)" "-"
2017/01/16 12:04:41 [error] 7#7: *219 open() "/usr/share/nginx/html/azenv.php" failed (2: No such file or directory), client: 23.251.63.45, server: localhost, request: "GET http://www.proxyjudge.info/azenv.php HTTP/1.1", host: "www.proxyjudge.info"
23.251.63.45 - - [16/Jan/2017:12:04:41 +0000] "GET http://www.proxyjudge.info/azenv.php HTTP/1.1" 404 571 "-" "Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/5.0)" "-"
2017/01/16 13:17:37 [error] 7#7: *230 open() "/usr/share/nginx/html/azenv.php" failed (2: No such file or directory), client: 23.251.63.45, server: localhost, request: "GET http://www.sbjudge1.com/azenv.php HTTP/1.1", host: "www.sbjudge1.com"
23.251.63.45 - - [16/Jan/2017:13:17:37 +0000] "GET http://www.sbjudge1.com/azenv.php HTTP/1.1" 404 571 "-" "Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; Trident/5.0)" "-"
qcloud 一直给我发短信,说有一些奇怪的域名和我的 ip 绑定。

但我检查了一下,没有找到原因,它们也不告诉我他们是如何发现这些域名与我的 ip 绑定的。
2017-05-22 12:38:59 +08:00
回复了 SlipStupig 创建的主题 程序员 求 docker 集群部署有简单的方案
k8s 吧,三个宿主节点,国内做就是网速太慢,学习阶段最好在海外的云上,否则等待就是一种煎熬。
2017-05-22 12:28:27 +08:00
回复了 zjsxwc 创建的主题 程序员 程序员学哪个语言作为第二外语好用?
阿语 不过挺难的
2016-04-29 13:04:36 +08:00
回复了 yseternal 创建的主题 程序员 我真是服了阿里云
美西云,目前隔个十几天就要强制重启一次,还好私人用途

user1@iZu1zxxxxxxZ:~$ last
user1 pts/0 xxx.xxx.111.207 Fri Apr 29 10:18 still logged in
user1 pts/0 xxx.xxx.250.60 Thu Apr 28 21:57 - 00:30 (02:33)
user1 pts/0 xxx.xxx.111.205 Thu Apr 28 14:11 - 18:13 (04:02)
user1 pts/0 xxx.xxx.111.203 Wed Apr 27 17:45 - 19:42 (01:57)
reboot system boot 3.13.0-32-generi Wed Apr 27 17:43 - 13:03 (1+19:19)
user1 pts/0 xxx.xxx.111.203 Wed Apr 27 17:08 - 17:41 (00:32)
user1 pts/0 xxx.xxx.250.60 Sun Apr 24 04:10 - 04:10 (00:00)
user1 pts/0 xxx.xxx.111.207 Fri Apr 22 16:44 - 18:16 (01:32)
user1 pts/0 xxx.xxx.111.208 Tue Apr 19 12:22 - 16:15 (03:53)
user1 pts/0 xxx.xxx.111.209 Mon Apr 18 12:41 - 18:53 (06:12)
user1 pts/0 xxx.xxx.250.60 Sun Apr 17 12:11 - 23:51 (11:39)
user1 pts/0 xxx.xxx.111.207 Fri Apr 15 15:51 - 16:14 (00:22)
user1 pts/0 xxx.xxx.250.60 Sun Apr 10 03:07 - 00:20 (21:13)
reboot system boot 3.13.0-32-generi Sun Apr 10 03:04 - 13:03 (19+09:59)
user1 pts/6 xxx.xxx.125.143 Fri Apr 8 17:49 - 20:41 (02:51)
user1 pts/4 xxx.xxx.125.143 Fri Apr 8 17:03 - 20:41 (03:37)
user1 pts/0 xxx.xxx.125.143 Fri Apr 8 15:08 - 20:41 (05:32)
user1 pts/0 xxx.xxx.250.60 Thu Apr 7 02:29 - 05:04 (02:34)
user1 pts/6 xxx.xxx.125.143 Tue Apr 5 15:54 - 19:33 (03:39)
user1 pts/4 xxx.xxx.125.143 Tue Apr 5 14:28 - 16:48 (02:20)
user1 pts/0 xxx.xxx.125.143 Tue Apr 5 14:27 - 16:48 (02:21)
user1 pts/0 xxx.xxx.125.143 Tue Apr 5 13:36 - 14:27 (00:50)
2016-01-13 13:31:59 +08:00
回复了 diyisoft 创建的主题 MySQL 制作 Mysql 绿色包
docker 吧,绝对绿色
2016-01-06 10:57:41 +08:00
回复了 qdlts1 创建的主题 Docker 网易也有自己的 docker 容器云服务了
@qdlts1 我就跑 node ,非 web ,个人用

docker 还是一个容器做一件事的好
你们的服务应该更适合一些企业用
2016-01-06 10:40:07 +08:00
回复了 qdlts1 创建的主题 Docker 网易也有自己的 docker 容器云服务了
29CNY 1C/512MB

略贵,我还是 VPS 上自己搭吧
2015-12-24 15:30:45 +08:00
回复了 evakiss 创建的主题 程序员 有没有一种能用 js 触发物理点击的浏览器
借宝地一问,有没有人在 Linux CLI 下用 nightmare 的,似乎无效阿

下面的代码在 windows 下能跑, 在 RHEL 7 下无效呢 TAT

npm install nightmare bluebird
DEBUG=* node --harmony index.js

```javascript

// index.js

var Nightmare = require('nightmare');
var Promise = require('bluebird');

var nightmare = new Nightmare();
Promise.resolve(nightmare
.goto('http://baidu.com')
.screenshot('screenshot.png')
.evaluate(function(){
return document.title;
}))
.then(function(value){
console.log(value);
console.log('All Done!');
return nightmare.end();
})
.then(function(result){
}, function(err){
console.error(err);
});

```
1  2  3  4  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   849 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
Developed with CodeLauncher
♥ Do have faith in what you're doing.