LUA Syntax

LUA Syntax

LUA Notes

注释

  • 单行注释
    --
  • 多行注释
    1
    2
    3
    --[[ 
    注释
    --]]
    1
    2
    3
    --[[ 
    注释
    ]]
  • 多行注释遇到用[[和]]表示的字符串就会提前结束,可以用—-[=[ 注释内容 ]=]来解决
    1
    2
    3
    --[=[ 
    注释
    ]=]
Read more
OpenSSH 配置文件体系
firewalld services 防火墙内嵌服务

firewalld services 防火墙内嵌服务

firewalld services 防火墙内嵌服务

Configuration file path: /usr/lib/firewalld/services

按字母顺序:

1
2
3
4
5
6
7
8
9
10
amanda-client.xml  
amanda-k5-client.xml
bacula-client.xml
bacula.xml
bitcoin-rpc.xml
bitcoin-testnet-rpc.xml
bitcoin-testnet.xml
bitcoin.xml
ceph-mon.xml
ceph.xml
Read more
LinuxCentos7-Systemd-Service自定义编写Service应用服务配置说明整理

LinuxCentos7-Systemd-Service自定义编写Service应用服务配置说明整理

Centos7-Systemd-Service自定义编写Service应用服务配置说明整理

系统基本service服务配置目录(此目录勿动,一般情况下只放系统核心基础服务配置,否存放应用注册类服务配置):

/etc/systemd/system

自定义服务配置管理目录(存放自定义应用注册类服务和第三方服务类配置):

/usr/lib/systemd/system/

Read more
Go:package time

Go:package time

package time

time 转换注意事项

Go语言指定时间原点

1
2
3
4
5
6
7
8
9
10
11
12
package main

import (
"time"
"fmt"
)

func main() {
//当前时间格式化,记忆规律:创始年份2016 | 一 | 二 | 三(15时,即 3 pm) | 四 | 五
nowTime := time.Now().Format("2006-01-02 15:04:05")
fmt.Println(nowTime)
}