Giter Club home page Giter Club logo

quickserver's Issues

start error

./start_quick_server.sh

  • Starting MySQL database server mysqld
    No directory, logging in with HOME=/
    [ OK ]
  • Checking for tables which need an upgrade, are corrupt or were
    not closed cleanly.
    nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:26

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:42

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:49

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:56

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:64

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:72

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:79

nginx: [alert] lua_code_cache is off; this will hurt performance in /opt/quick_server/openresty/nginx/conf/nginx.conf:86

在 Quick Server 安装目录外执行 stop_quick_server.sh/start_quick_server.sh 等脚本时,无法读取 conf/config.lua 文件

错误信息:

/opt/quick_server/bin/openresty/luajit/bin/lua: (command line):1: module 'conf.config' not found:
    no field package.preload['conf.config']
    no file './conf/config.lua'
    no file '/opt/quick_server/bin/openresty/luajit/share/luajit-2.1.0-alpha/conf/config.lua'
    no file '/usr/local/share/lua/5.1/conf/config.lua'
    no file '/usr/local/share/lua/5.1/conf/config/init.lua'
    no file '/opt/quick_server/bin/openresty/luajit/share/lua/5.1/conf/config.lua'
    no file '/opt/quick_server/bin/openresty/luajit/share/lua/5.1/conf/config/init.lua'
    no file './conf/config.so'
    no file '/usr/local/lib/lua/5.1/conf/config.so'
    no file '/opt/quick_server/bin/openresty/luajit/lib/lua/5.1/conf/config.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './conf.so'
    no file '/usr/local/lib/lua/5.1/conf.so'
    no file '/opt/quick_server/bin/openresty/luajit/lib/lua/5.1/conf.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    (command line):1: in main chunk
    [C]: at 0x004049d0

有关mysql等初始化问题

请问一下 是mysql Redis等都是在每次请求进入后
都要从新连接 处理完就释放了吗?(我看的是httpServerApp这部分)
当一次请求进入后 会初始化新的httpServerApp然后找到action和mysql等建立连接处理,最终释放
这个有可能建立几个mysql等的长连接共用吗?

目录结构调整

  • 将下列目录放入 tmp 中:
client_body_temp/
fastcgi_temp/
proxy_temp/
scgi_temp/
uwsgi_temp/
  • 新增 bin 目录,将 beanstalkd, openresty, redis 放入 bin 目录。
  • 新增 db 目录,放置 redis 数据库
  • conf/redis.conf 移动到 bin/redis/conf 目录

stop_quick_server.sh 脚本有问题

develop 分支,启动 quickserver 后执行 ./stop_quick_server.sh:

Stop Nginx DONE
nginx: [error] open() "/opt/quick_server/logs/nginx.pid" failed (2: No such file or directory)

实际上此时 nginx 已经退出。

Session 失效机制

当 session 失效时,应该进行清理,并且断开使用该 session 的 WebSocket 连接。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.