发表于: 2017-05-30 21:39:15

2 1192


今天完成的任务:

    部署两台WEB,通过Nginx配置两台WEB随机访问,两台WEB可以随机访问两台Service.又是一堆错误.

        1.修改xml文件的时候用到editplus,不知道为什么不能用了.


解决:

貌似出现这个错误代码和权限问题有关,
点击"开始"进入:程序 - 附件 - 命令提示符,在”命令提示符“上点击鼠标右键,选择”以管理员身份运行“命令,这个时候将打开Dos命令窗口,现在就按正常写法输入Regsvr32 scrrun.dll,就能够注册成功了。

  2.editplus 添加到鼠标右键菜单报错,

系统服务找不到eppshell.dll, eppshell64.dll原因是没有注册到系统.因为自己的目录中有汉字,

C:\zhangfan\Program Files\办公软件\editplus有空格,所以不能直接在运行中注册,需要直接在其目录下Regsvr32 eppshell.dll eppshell64.dll

3.nginx: [error]

(1)   OpenEvent("Global\ngx_reload_8240") failed
(2)  The system cannot find the file specified)

解决:Nginx的worker  process 没有启动.Nginx.EXE启动的是master process.

Nginx.conf配置:

 upstream localhost  {

            server localhost:8080 weight=5;

            server localhost:8010 weight=1;

        }

    server {

        listen       80;

        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {

            root   html;

            index  index.html index.htm;

   proxy_pass http://localhost;

            proxy_set_header        Host            $host;

        }


停掉jetty后,照样可以访问,只是显示的就是Tomcat的页面了.

    几个常用的Nginx命令,记得在Nginx的目录下来用

         开始:start nginx

         关闭:nginx.exe -s stop

         退出(会保存信息温和退出):nginx.exe -s quit
         重新载入,改变conf文件信息时比较有用:nginx.exe -s reload

遇到的问题:

        还不会部署到SVN上.这个坑等复盘的时候填上.

收获:

        两个容器增加了项目的稳定.明显可以提高网站的负载能力.进一步接近真实的web项目了.加油!

明天的计划:

        了解Tuscany,准备复盘项目.









返回列表 返回列表
评论

    分享到