请问下windows有没有类似supervisor的软件

想把python文件一直运行在后台,曾经做过centos用supervisor把python一直运行在后台,但是windows没有这个软件,所以问问大大们,windows有类似的软件么

1个回答

作为 “windows 的服务”,监控这些基本功能 windows 是自带的。
参考一下:http://www.cnblogs.com/xuxyblog/p/service.html

weixin_40584261
谦谦公子爱编程 https://blog.csdn.net/fefsdf/article/details/80950356
11 个月之前 回复
qq_35228984
我想成为dalao 这个东西我试过,好像要将py文件写成接口的形式,可以用这个,我昨天写的是个无限循环发送消息的东西,不是接口,最后使用了运行.pyw的方法,能将他运行在后台,但是还没找到如果宕机重启的方法。
11 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
supervisor托管的进程的子进程异常退出了,如何重启
被supervisor托管的进程会产生子进程,但是查看status似乎supervisor不会管理这里产生的子进程,如果父进程被杀死了,supervisor 会将其重启,但如果父进程的子进程被杀死了,不会被重启,有办法解决这个问题吗?
storm集群nimbus连接不上supervisor
Ubuntu12.04系统,使用0.9.3版的storm 通过单独的终端,启动:主机的nimbus和ui,2台从机上的supervisor,但在ui的网页上,supervisor summary的数量是0。
虚拟机版本CentOS Linux release 7.6.1810 (Core)下离线安装keepalived+nginx+supervisor
如题, 求大神帮忙整理:在一台纯净的linux虚拟机centos7.6.1810版本下 离线安装keepalived+nginx的rpm包整理(不能使用任何在线安装的方式 rpm yum)整理好之后可以私我发我整理好之后的包,也可以直接回答, 我确认可以安装后确认采纳,分不多,希望有大神帮个忙。 另外对版本的要求是希望版本号越高越好,keepalived2.0以上,nginx也尽 可能新一些,据我所述目前keepalived最新版是2.0.18,nginx最新版是1.17.3 supervisor是4.0.4, 不要求都是最新版,尽可能版本号高一点。可以把keepalived+nginx 和supervisor的rpm依赖包分开。
yaws服务器windows下启动报错
Yaws服务器我2.0.4 2.0.3 1.99都有尝试过,全部启动不起来. erlang版本是 OTP/21. . ``` PS C:\Develop\yaws1.9> yaws -i Eshell V10.0.1 (abort with ^G) 1> =INFO REPORT==== 9-Dec-2019::10:57:22.039000 === Yaws: Using config file C:\Develop\yaws1.9\yaws.conf 1> =ERROR REPORT==== 9-Dec-2019::10:57:22.070000 === Config Warning: Directory c:/Develop/yaws1.9/yaws/ebin for ebin_dir doesn't exist 1> =ERROR REPORT==== 9-Dec-2019::10:57:22.117000 === ** Generic server yaws_log terminating ** Last message in was {setup, {gconf,"c:/Develop/yaws1.9",false,100, "c:/Develop/yaws1.9/logs", ["c:/Develop/yaws1.9/examples/ebin", "c:/Develop/yaws1.9/examples/ebin"], [],[],30000,nolimit,400,1000000,8000,nolimit, [],10240,[],1000000,30, ["c:/Develop/yaws1.9/examples/include", "c:/Develop/yaws1.9/examples/include"], "/usr/bin/php-cgi","Yaws 1.99","default",false, [],yaws_session_server,8,undefined, [inet]}, [[{sconf,8080,7,[],undefined,undefined, "c:/Develop/yaws1.9/www",[], {0,0,0,0}, "localhost:8080",[],undefined,undefined, undefined, [{"c:/Develop/yaws1.9/www",[]}], 10240, [{"cgi-bin",yaws_appmod_cgi}], [],yaws_outmod,yaws_outmod,yaws_outmod,yaws, yaws_log,[],undefined, [yaws,php,cgi,fcgi], [], ["index.yaws","index.html","index.php"], [], [{listen_opts,[{backlog,1024}]}], [],undefined,undefined, {cgi,"/usr/bin/php-cgi"}, undefined,undefined,undefined,undefined}]]} ** When Server state == {state,false,undefined, ["[","09","/","Dec","/","2019",":","10",":", "57",":","22"," ", [43,"08","00"], "]"], 1000000,undefined,false} ** Reason for termination == ** {noproc,[{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]}, {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]}, {yaws_log,terminate,2, [{file,"../../src/yaws_log.erl"},{line,397}]}, {gen_server,try_terminate,3,[{file,"gen_server.erl"},{line,673}]}, {gen_server,terminate,10,[{file,"gen_server.erl"},{line,858}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]} ** Client yaws_server stacktrace ** [{gen,do_call,4,[{file,"gen.erl"},{line,169}]}, {gen_server,call,3,[{file,"gen_server.erl"},{line,219}]}, {yaws_server,init,1,[{file,"../../src/yaws_server.erl"},{line,170}]}, {gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]}, {gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}] 1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 === crasher: initial call: yaws_log:init/1 pid: <0.77.0> registered_name: yaws_log exception exit: noproc in function gen:do_for_proc/2 (gen.erl, line 228) in call from gen_event:rpc/2 (gen_event.erl, line 239) in call from yaws_log:terminate/2 (../../src/yaws_log.erl, line 397) in call from gen_server:try_terminate/3 (gen_server.erl, line 673) in call from gen_server:terminate/10 (gen_server.erl, line 858) ancestors: [yaws_sup,<0.75.0>] message_queue_len: 0 messages: [] links: [<0.76.0>] dictionary: [] trap_exit: true status: running heap_size: 4185 stack_size: 27 reductions: 119617 neighbours: 1> =SUPERVISOR REPORT==== 9-Dec-2019::10:57:22.133000 === supervisor: {local,yaws_sup} errorContext: start_error reason: {noproc, {gen_server,call, [yaws_log, {setup, {gconf,"c:/Develop/yaws1.9",false,100, "c:/Develop/yaws1.9/logs", ["c:/Develop/yaws1.9/examples/ebin", "c:/Develop/yaws1.9/examples/ebin"], [],[],30000,nolimit,400,1000000,8000,nolimit,[], 10240,[],1000000,30, ["c:/Develop/yaws1.9/examples/include", "c:/Develop/yaws1.9/examples/include"], "/usr/bin/php-cgi","Yaws 1.99","default",false, [],yaws_session_server,8,undefined, [inet]}, [[{sconf,8080,7,[],undefined,undefined, "c:/Develop/yaws1.9/www",[], {0,0,0,0}, "localhost:8080",[],undefined,undefined, undefined, [{"c:/Develop/yaws1.9/www",[]}], 10240, [{"cgi-bin",yaws_appmod_cgi}], [],yaws_outmod,yaws_outmod,yaws_outmod,yaws, yaws_log,[],undefined, [yaws,php,cgi,fcgi], [], ["index.yaws","index.html","index.php"], [], [{listen_opts,[{backlog,1024}]}], [],undefined,undefined, {cgi,"/usr/bin/php-cgi"}, undefined,undefined,undefined,undefined}]]}, infinity]}} offender: [{pid,undefined}, {id,yaws_server}, {mfargs, {yaws_server,start_link, [{env,false,false,false, {file,"C:\\Develop\\yaws1.9\\yaws.conf"}, false,false,"default"}]}}, {restart_type,permanent}, {shutdown,120000}, {child_type,worker}] 1> =SUPERVISOR REPORT==== 9-Dec-2019::10:57:22.133000 === supervisor: {local,yaws_sup} errorContext: shutdown_error reason: noproc offender: [{pid,<0.77.0>}, {id,yaws_log}, {mfargs,{yaws_log,start_link,[]}}, {restart_type,permanent}, {shutdown,5000}, {child_type,worker}] 1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 === crasher: initial call: yaws_server:init/1 pid: <0.79.0> registered_name: [] exception exit: {noproc, {gen_server,call, [yaws_log, {setup, {gconf,"c:/Develop/yaws1.9",false,100, "c:/Develop/yaws1.9/logs", ["c:/Develop/yaws1.9/examples/ebin", "c:/Develop/yaws1.9/examples/ebin"], [],[],30000,nolimit,400,1000000,8000, nolimit,[],10240,[],1000000,30, ["c:/Develop/yaws1.9/examples/include", "c:/Develop/yaws1.9/examples/include"], "/usr/bin/php-cgi","Yaws 1.99","default", false,[],yaws_session_server,8,undefined, [inet]}, [[{sconf,8080,7,[],undefined,undefined, "c:/Develop/yaws1.9/www",[], {0,0,0,0}, "localhost:8080",[],undefined, undefined,undefined, [{"c:/Develop/yaws1.9/www",[]}], 10240, [{"cgi-bin",yaws_appmod_cgi}], [],yaws_outmod,yaws_outmod,yaws_outmod, yaws,yaws_log,[],undefined, [yaws,php,cgi,fcgi], [], ["index.yaws","index.html","index.php"], [], [{listen_opts,[{backlog,1024}]}], [],undefined,undefined, {cgi,"/usr/bin/php-cgi"}, undefined,undefined,undefined, undefined}]]}, infinity]}} in function gen_server:call/3 (gen_server.erl, line 223) in call from yaws_server:init/1 (../../src/yaws_server.erl, line 170) in call from gen_server:init_it/2 (gen_server.erl, line 374) in call from gen_server:init_it/6 (gen_server.erl, line 342) ancestors: [yaws_sup,<0.75.0>] message_queue_len: 0 messages: [] links: [<0.76.0>] dictionary: [{start_time,{{2019,12,9},{10,57,22}}}] trap_exit: true status: running heap_size: 6772 stack_size: 27 reductions: 64032 neighbours: 1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 === crasher: initial call: application_master:init/4 pid: <0.74.0> registered_name: [] exception exit: {{shutdown, {failed_to_start_child,yaws_server, {noproc, {gen_server,call, [yaws_log, {setup, {gconf,"c:/Develop/yaws1.9",false,100, "c:/Develop/yaws1.9/logs", ["c:/Develop/yaws1.9/examples/ebin", "c:/Develop/yaws1.9/examples/ebin"], [],[],30000,nolimit,400,1000000,8000,nolimit,[], 10240,[],1000000,30, ["c:/Develop/yaws1.9/examples/include", "c:/Develop/yaws1.9/examples/include"], "/usr/bin/php-cgi","Yaws 1.99","default",false,[], yaws_session_server,8,undefined, [inet]}, [[{sconf,8080,7,[],undefined,undefined, "c:/Develop/yaws1.9/www",[], {0,0,0,0}, "localhost:8080",[],undefined,undefined, undefined, [{"c:/Develop/yaws1.9/www",[]}], 10240, [{"cgi-bin",yaws_appmod_cgi}], [],yaws_outmod,yaws_outmod,yaws_outmod,yaws, yaws_log,[],undefined, [yaws,php,cgi,fcgi], [], ["index.yaws","index.html","index.php"], [], [{listen_opts,[{backlog,1024}]}], [],undefined,undefined, {cgi,"/usr/bin/php-cgi"}, undefined,undefined,undefined,undefined}]]}, infinity]}}}}, {yaws_app,start,[normal,[]]}} in function application_master:init/4 (application_master.erl, line 138) ancestors: [<0.73.0>] message_queue_len: 0 messages: [{'EXIT',<0.75.0>,normal}] links: [<0.73.0>,<0.42.0>] dictionary: [] trap_exit: true status: running heap_size: 1598 stack_size: 27 reductions: 263 neighbours: 1> =INFO REPORT==== 9-Dec-2019::10:57:22.148000 === application: yaws exited: {{shutdown, {failed_to_start_child,yaws_server, {noproc, {gen_server,call, [yaws_log, {setup, {gconf,"c:/Develop/yaws1.9",false,100, "c:/Develop/yaws1.9/logs", ["c:/Develop/yaws1.9/examples/ebin", "c:/Develop/yaws1.9/examples/ebin"], [],[],30000,nolimit,400,1000000,8000,nolimit,[],10240,[], 1000000,30, ["c:/Develop/yaws1.9/examples/include", "c:/Develop/yaws1.9/examples/include"], "/usr/bin/php-cgi","Yaws 1.99","default",false,[], yaws_session_server,8,undefined, [inet]}, [[{sconf,8080,7,[],undefined,undefined, "c:/Develop/yaws1.9/www",[], {0,0,0,0}, "localhost:8080",[],undefined,undefined,undefined, [{"c:/Develop/yaws1.9/www",[]}], 10240, [{"cgi-bin",yaws_appmod_cgi}], [],yaws_outmod,yaws_outmod,yaws_outmod,yaws,yaws_log,[], undefined, [yaws,php,cgi,fcgi], [], ["index.yaws","index.html","index.php"], [], [{listen_opts,[{backlog,1024}]}], [],undefined,undefined, {cgi,"/usr/bin/php-cgi"}, undefined,undefined,undefined,undefined}]]}, infinity]}}}}, {yaws_app,start,[normal,[]]}} type: permanent 1> {"Kernel pid terminated",application_controller,"{application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{noproc,{gen_server,call,[yaws_log,{setup,{gconf,\"c:/Develop/yaws1.9\",false,100,\"c:/Develop/yaws1.9/logs\",[\"c:/Develop/yaws1.9/examples/ebin\",\"c:/Develop/yaws1.9/examples/ebin\"],[],[],30000,nolimit,400,1000000,8000,nolimit,[],10240,[],1000000,30,[\"c:/Develop/yaws1.9/examples/include\",\"c:/Develop/yaws1.9/examples/include\"],\"/usr/bin/php-cgi\",\"Yaws 1.99\",\"default\",false,[],yaws_session_server,8,undefined,[inet]},[[{sconf,8080,7,[],undefined,undefined,\"c:/Develop/yaws1.9/www\",[],{0,0,0,0},\"localhost:8080\",[],undefined,undefined,undefined,[{\"c:/Develop/yaws1.9/www\",[]}],10240,[{\"cgi-bin\",yaws_appmod_cgi}],[],yaws_outmod,yaws_outmod,yaws_outmod,yaws,yaws_log,[],undefined,[yaws,php,cgi,fcgi],[],[\"index.yaws\",\"index.html\",\"index.php\"],[],[{listen_opts,[{backlog,1024}]}],[],undefined,undefined,{cgi,\"/usr/bin/php-cgi\"},undefined,undefined,undefined,undefined}]]},infinity]}}}},{yaws_app,start,[normal,[]]}}}"} Kernel pid terminated (application_controller) ({application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{noproc,{gen_server,call,[yaws_log,{setup,{gconf,"c:/Develop/yaws1.9",fals Crash dump is being written to: erl_crash.dump...done ``` 这是个windows下执行yaws -i命令后的信息. 最近刚开始学这个,网上找了很久没有找到有类似的错误与解决办法
Supervisor, Supervisee
Description Suppose some supervisors each get to hire a new person for their department. There are N people to be placed in these N departments. Each supervisor interviews all N people, and ranks them according to how much she wants each of them in her department (1 being "really want" and N being "really don't want"). In turn, each of the N candidates ranks each of the supervisors as to how much that person would like to work for that supervisor (again, 1 is "really want to work for him/her" and N is "really don't want to work for him/her"). Given the scores that each supervisor has for each candidate, and the scores each candidate has for each manager, write a computer program to determine the "best match" of candidates to supervisors. The "best match" is determined by finding the distribution that leads to the highest overall (i.e. sum of) satisfaction for all people. The closer a person is to her number one choice, the better. If everyone gets their number one choice, the average difference will be 0. Input The first line of the input will contain a single integer greater than 0 specifying the number of test cases. The next line will contain a single integer value N, 0 < N < 15, representing the number of supervisors (and the number of employees - there are N supervisors and N employees). The next N lines will be the preferences of each of the N supervisors. Each line will contain N integer entries (1 through N for employees 1 through N), each separated by a space character, that represents the preferences of that supervisor from most preferred to least preferred. More specifically, the first entry on the line will represent that supervisor's first choice, the second entry her second, and so on. The next N lines will be the preferences of the N employees, in the same format as the supervisors. All lines of data in the input file will end with an empty line. Output For each test case, write the test case number (starting with 1) followed by the best average difference written to six digits of precision to the right of the decimal point. On the next line, show which best match it was (starting with 1). On the next N lines, show each supervisor (starting with 1) followed by the employee with which she was matched (1 per line). NOTE: if there is more than one best match, matches should be listed in ascending permuted order (see sample output). Separate each data set with an empty line. Sample Input 2 7 1 2 3 4 5 6 7 2 1 3 4 5 6 7 3 1 2 4 5 6 7 4 1 2 3 5 6 7 5 1 2 3 4 6 7 6 1 2 3 4 5 7 7 1 2 3 4 5 6 1 2 3 4 5 6 7 2 1 3 4 5 6 7 3 1 2 4 5 6 7 4 1 2 3 5 6 7 5 1 2 3 4 6 7 6 1 2 3 4 5 7 7 1 2 3 4 5 6 2 1 2 2 1 1 2 1 2 Sample Output Data Set 1, Best average difference: 0.000000 Best Pairing 1 Supervisor 1 with Employee 1 Supervisor 2 with Employee 2 Supervisor 3 with Employee 3 Supervisor 4 with Employee 4 Supervisor 5 with Employee 5 Supervisor 6 with Employee 6 Supervisor 7 with Employee 7 Data Set 2, Best average difference: 0.250000 Best Pairing 1 Supervisor 1 with Employee 1 Supervisor 2 with Employee 2
storm可操作集群的客户端就是supervisor吗?
请教:在一台机器上安装storm客户端,这台客户端会变成一台supervisor吗? 客户端与storm集群是什么关系?因为我看yaml配置里只配了nimbus,而没有说明哪台是supervisor,是不是就是默认有这样配置的都是supervisor呢?新人只有5币 劳驾各位道友
Centos7中怎么卸载supervisor
在Centos7系统中怎么卸载supervisor呢??????????????????????
JAVA的NameValuePair解析问题
想向各位大佬请教一下Java的NameValuePair解析问题, 之前没用过NameValuePair去请求数据。。。 想问下这段代码传到后端接口的数据是啥样的?需要解析嘛? ``` List<NameValuePair> pairs = new ArrayList<NameValuePair>(); NameValuePair pair1 = new BasicNameValuePair("supervisor", supervisorEt.getEditableText().toString()); NameValuePair pair2 = new BasicNameValuePair("content", superviseContentEt.getEditableText().toString()); NameValuePair pair3 = new BasicNameValuePair("userId", String.valueOf(signedUser.getId())); pairs.add(pair1); pairs.add(pair2); pairs.add(pair3); ``` 后端参数要求写的是insertPlan(List<String》 param),这样对吗?还是直接写String,那要如何取出"content"的值呢。。。? 谢谢各位
storm1.0.2 supervisor still hasn't started
问题描述 在新搭建的storm1.0.2环境下提交jar包,执行后不出数据,检查日志发现 ![图片说明](https://img-ask.csdn.net/upload/201609/08/1473300062_814497.jpg) 而相对应的work日志 worker.log.err为空 worker.log如下 ![图片说明](https://img-ask.csdn.net/upload/201609/08/1473300106_514498.jpg) 会在这里卡上一段时间,supervisor的日志还是继续supervisor {taskid} still hasn't started 然后无限的循环。
关于PYTHON下进程控制器supervisor的设置,为啥文件修改被拒绝?
XXXX@ubuntu:/usr/local/bin$ echo_supervisord_conf > /etc/supervisord.conf bash: /etc/supervisord.conf: Permission denied XXXX@ubuntu:/usr/local/bin$ sudo echo_supervisord_conf > /etc/supervisord.conf bash: /etc/supervisord.conf: Permission denied
supervisor杀掉进程前能否执行脚本或其他命令
supervisorctl 进入交互模式 stop shadPY ; 在停掉管理的这个子进程之前能否执行一些其他的操作 比如kill掉这个程序之前先打出一个日志 或执行一个其他的shell/python脚本
storm集群执行 storm supervisor & 命令后,一直在kill进程,怎么解决?
zookeeper版本 3.4.10</br> apache-storm版本 1.2.2</br> </br> 搭建了三台服务器的storm集群,ubuntu1执行storm nimbus & 命令,ubuntu2和ubuntu3都执行storm supervisor & 命令,三条命令都执行成功。 </br> </br> 但是ubuntu2和ubuntu3一直在kill不存在的进程,如图所示: ![图片说明](https://img-ask.csdn.net/upload/201902/20/1550655718_492561.png) </br> </br> ![图片说明](https://img-ask.csdn.net/upload/201902/20/1550655745_453460.png) </br> </br> 虽然不影响程序的执行,但是看着很难受,百度没有查到解决办法,特地来请教如何处理。
Tiles of Tetris, NOT! 怎么可以实现的
Problem Description You’ve really messed up this time. “Go buy some square tiles” your supervisor told you. But as usual, you were either busy reading that message, answering that e-email, or updating your wall status on facebook. “Go buy some tiles” was all that you could remember. Your supervisor is now complaining that the tiles you bought were not squares and you’ll be fired if you don’t fix it! “Fix it? How am I supposed to fix it?” you say to yourself. “I’m a programmer, The only tiles I know are those of the game Tetris!” There is no way you can afford to be fired either. This is your third job in less than a month. “I have to fix it!” you keep repeating. You call the store you bought the tiles from, but they won’t take them back or even exchange. “We cannot cancel orders once the merchandise has left the store”, they tell you. You take a look at the tiles, they’re all rectangleshaped and all of the same size. You’d be losing a lot if you cut them, not that you’d be able to cut them into perfect squares in the first place. “Wait a minute!” you say to yourself. You grab a bunch of tiles, put them in some arrangement and Voila, that’s a square. But that won’t convince your boss. Tiles are supposed to be small, and what you came-up with is rather big. You take another look at your arrangement, and it hits you again. “I’m on a roll today!” you say proudly to yourself.You just figured out how to find the smallest number of tiles needed to form the smallest possible square. You rush and bring your supervisor to show him your discovery. He’s not that much impressed. You’re not making sense anyway (given all the blood rushing in your head trying to explain your algorithm.) You know that the calculation is definitely much simpler than what you’re saying, but you just can’t seem to think clearly. Finally, your supervisor shouts: “First of all, the tiles have to be laid-down in the same orientation. Second, I’m running a construction site here, not a software shop! How do you expect the workers to figure out that number! You either write me a program to do the calculation you’re describing, or you go collect your netbook, your cell, your ipod, and your blackberry, and you get out of here this minute!” Input Your program will be tested on one or more data sets. Each test set is described on a single line made of two positive numbers: (0 < W,H < 1, 000, 000) which are the width and height of each tile. The last line is made of two zeros. Output For each test case, write the answer on a separate line. Sample Input 2 3 1 2 0 0 Sample Output 6 2
关于nodejs express项目文件夹移动位置后找不到express模块的问题
各位高手大家好 , 小弟初学nodejs 遇到一个百思不得其解的问题,就是我新建了一个express项目, 在D:\service文件夹下,这给service文件夹里有node__modules文件夹的,并且,express模块是 安装在里面的,我用的不是全局安装。在该目录下用supervisor调试运行正常,然后 我把service文件夹 拷到E盘下,再运行就报错找不到express模块。请问,不是说nodejs项目 运行会自动搜索当前目录的node_modules文件夹吗?里面各个模块安装都好好的,为什么 整个文件拷到 另一个地方就不行了呢,并且 我打开node_modules里的express,会显示 找不到引用的位置。而拷回去就好了,不知道是为什么,怎样才能在整个项目拷到别 的盘上的时候找到模块呢?这样固定在一个地方,岂不是没法移植了?
nodejs开发工具webstorm10
怎么设置热部署相关,跪求大神!!没B不胜感激(和supervisor整合的时候)
关于Storm/Zookeeper集群配置
我在搭建一套Zookeeper+Kafka+Storm的集群环境,由于只有两台服务器,所以Zookeeper搭建 了三个节点,服务器1有两个zookeeper节点,端口分别是2181,2182。在Strom.yaml配置文件中,![图片说明](http://img.ask.csd n.net/upload/201707/31/1501469925_400368.png) 请问:1、storm的配置文件中的端口配置是否正确? 2、在服务器1中启动Storm的nimbus节点和UI,在服务器2启动Storm的supervisor节点,但是在Storm ui中并没有显的supervisor节点?
Nginx+gunicorn+Supervisor部署flask一直不成功?
用的是阿里云,按着教程走到最后,可用浏览器外部访问一直显示的是Nginx运行成功的欢迎界面。我在服务器上curl 127.0.0.1:80显示的是nginx欢迎界面,curl 127.0.0.1:8000显示的是我网站的首页。nginx配置如下,不知为何转发一直不成功 ``` #nginx配置文件 server { listen 80; server_name localhost; root /home/mo/blog; access_log /home/mo/blog/logs/access.log; error_log /home/mo/blog/logs/access.log; location / { proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; if (!-f $request_filename) { proxy_pass http://127.0.0.1:8000; break; } } } #gunciorn配置 workers = 3 bind = 127.0.0.1:8000 ```
cloudera集群安装总是出现如下错误:
![图片说明](https://img-ask.csdn.net/upload/201708/29/1503940445_627985.png) ![图片说明](https://img-ask.csdn.net/upload/201708/29/1503940463_713476.png) [09/Aug/2017 17:01:13 +0000] 9573 MainThread agent ERROR Failed to connect to previous supervisor. Traceback (most recent call last): File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.8.0-py2.6.egg/cmf/agent.py", line 2038, in find_or_start_supervisor self.configure_supervisor_clients() File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.8.0-py2.6.egg/cmf/agent.py", line 2222, in configure_supervisor_clients supervisor_options.realize(args=["-c", os.path.join(self.supervisor_dir, "supervisord.conf")]) File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 1578, in realize Options.realize(self, *arg, **kw) File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 312, in realize self.process_config() File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 320, in process_config self.process_config_file(do_usage) File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 355, in process_config_file self.usage(str(msg)) File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 143, in usage self.exit(2) SystemExit: 2 每次都出现这样的错误,SELinux和防火墙均关闭,9000和9001端口均空闲
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
阿里面试官问我:如何设计秒杀系统?我的回答让他比起大拇指
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图和个人联系方式,欢迎Star和指教 前言 Redis在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在Redis的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Android性能优化(4):UI渲染机制以及优化
文章目录1. 渲染机制分析1.1 渲染机制1.2 卡顿现象1.3 内存抖动2. 渲染优化方式2.1 过度绘制优化2.1.1 Show GPU overdraw2.1.2 Profile GPU Rendering2.2 卡顿优化2.2.1 SysTrace2.2.2 TraceView 在从Android 6.0源码的角度剖析View的绘制原理一文中,我们了解到View的绘制流程有三个步骤,即m...
微服务中的Kafka与Micronaut
今天,我们将通过Apache Kafka主题构建一些彼此异步通信的微服务。我们使用Micronaut框架,它为与Kafka集成提供专门的库。让我们简要介绍一下示例系统的体系结构。我们有四个微型服务:订单服务,行程服务,司机服务和乘客服务。这些应用程序的实现非常简单。它们都有内存存储,并连接到同一个Kafka实例。 我们系统的主要目标是为客户安排行程。订单服务应用程序还充当网关。它接收来自客户的请求...
致 Python 初学者们!
作者| 许向武 责编 | 屠敏 出品 | CSDN 博客 前言 在 Python 进阶的过程中,相信很多同学应该大致上学习了很多 Python 的基础知识,也正在努力成长。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 Python 这门编程语言,从2009年开始单一使用 Python 应对所有的开发工作,直至今...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
SpringBoot2.x系列教程(三十六)SpringBoot之Tomcat配置
Spring Boot默认内嵌的Tomcat为Servlet容器,关于Tomcat的所有属性都在ServerProperties配置类中。同时,也可以实现一些接口来自定义内嵌Servlet容器和内嵌Tomcat等的配置。 关于此配置,网络上有大量的资料,但都是基于SpringBoot1.5.x版本,并不适合当前最新版本。本文将带大家了解一下最新版本的使用。 ServerProperties的部分源...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
爬取薅羊毛网站百度云资源
这是疫情期间无聊做的爬虫, 去获取暂时用不上的教程 import threading import time import pandas as pd import requests import re from threading import Thread, Lock # import urllib.request as request # req=urllib.request.Requ...
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名...
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计...
HTML5适合的情人节礼物有纪念日期功能
前言 利用HTML5,css,js实现爱心树 以及 纪念日期的功能 网页有播放音乐功能 以及打字倾诉感情的画面,非常适合情人节送给女朋友 具体的HTML代码 具体只要修改代码里面的男某某和女某某 文字段也可自行修改,还有代码下半部分的JS代码需要修改一下起始日期 注意月份为0~11月 也就是月份需要减一。 当然只有一部分HTML和JS代码不够运行的,文章最下面还附加了完整代码的下载地址 &lt;!...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允许使用这...
相关热词 c# 识别回车 c#生成条形码ean13 c#子控制器调用父控制器 c# 写大文件 c# 浏览pdf c#获取桌面图标的句柄 c# list反射 c# 句柄 进程 c# 倒计时 线程 c# 窗体背景色
立即提问