This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://taskfile.dev | |
version: '3' | |
tasks: | |
default: | |
cmds: | |
- go build -o nats-server -trimpath -ldflags="-s -w -buildid=" . | |
env: | |
GOOS: linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
from __future__ import absolute_import, division, print_function | |
import datetime | |
import time | |
from mongoengine import (DateTimeField, Document, ListField, StringField, | |
connect) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get upgrade | |
groupadd www | |
useradd -s /sbin/nologin -g www www | |
mkdir -p /home/wwwroot/default | |
chmod +w /home/wwwroot/default | |
mkdir -p /home/wwwlogs | |
chmod 777 /home/wwwlogs | |
touch /home/wwwlogs/nginx_error.log | |
apt-get install -y mysql-server mysql-client vim |