Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Commit

Permalink
Supervisord配置处理too many open files问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hb-chen committed Jun 9, 2018
1 parent be7bf7c commit 1de9cb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ util 公共工具

## Supervisord部署
```bash
# Max open files问题,修改supervisord配置
$ vi /etc/supervisor/supervisord.conf
[supervisord]
minfds = 10240

$ vi /etc/supervisor/conf.d/echo-web.conf
```

Expand Down
4 changes: 2 additions & 2 deletions router/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func ApiHandler(c *Context) error {
return nil
}

func JETTesterHandler(c echo.Context) error {
t, err := getJETToken()
func JWTTesterHandler(c echo.Context) error {
t, err := getJWTToken()
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions router/api/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func UserHandler(c echo.Context) error {

func UserLoginHandler(c echo.Context) error {

t, err := getJETToken()
t, err := getJWTToken()
if err != nil {
return err
}
Expand All @@ -56,7 +56,7 @@ func UserRegisterHandler(c echo.Context) error {
return nil
}

func getJETToken() (t string, e error) {
func getJWTToken() (t string, e error) {
// Create token
token := jwt.New(jwt.SigningMethodHS256)

Expand Down

0 comments on commit 1de9cb9

Please sign in to comment.