Skip to content

Instantly share code, notes, and snippets.

netnr netnr

Block or report user

Report or block netnr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@netnr
netnr / frp.md
Last active Oct 12, 2019
frp配置文件
View frp.md
@netnr
netnr / frp
Created Sep 29, 2019
frp配置文件
View frp
文档:https://github.com/fatedier/frp/blob/master/README_zh.md
下载地址:https://github.com/fatedier/frp/releases
### frps.ini
```
[common]
# frp server 绑定的端口
bind_port = 60
# 设置 http 访问端口为
@netnr
netnr / sqlserver-backup-database
Created Sep 27, 2019
sqlserver备份数据并打包为zip
View sqlserver-backup-database
# 生成备份文件 && 打包为zip && 删除备份文件
sqlcmd -S . -U sa -P 123 -Q "BACKUP DATABASE netnr TO DISK = '/netnr/data/netnr.bak' with format" && cd /netnr/data && zip -r netnr.zip netnr.bak && rm -rf netnr.bak
# 备份
sqlcmd -S . -U sa -P 密码 -Q "BACKUP DATABASE 数据库 TO DISK = '备份路径' with format"
@netnr
netnr / cat-name
Created Sep 27, 2019
查看linux系统的版本名称
View cat-name
# Linux内核版本
uname -a
uname -r
cat /proc/version
cat /etc/issue
# RedHat(centos)
cat /etc/redhat-release
@netnr
netnr / default
Created Sep 27, 2019
centos7更改为启动桌面或命令行模式
View default
systemctl get-default # 获取当前系统启动模式
systemctl set-default graphical.target # 命令行 => 图形界面
systemctl set-default multi-user.target # 图形界面 => 命令行
cat /etc/inittab # 配置文件
# help
https://blog.csdn.net/qq_23014435/article/details/74347925
@netnr
netnr / default
Created Sep 27, 2019
centos7更改为启动桌面或命令行模式
View default
systemctl get-default # 获取当前系统启动模式
systemctl set-default graphical.target # 命令行 => 图形界面
systemctl set-default multi-user.target # 图形界面 => 命令行
cat /etc/inittab # 配置文件
# help
https://blog.csdn.net/qq_23014435/article/details/74347925
@netnr
netnr / default
Created Sep 27, 2019
centos7更改为启动桌面或命令行模式
View default
systemctl get-default # 获取当前系统启动模式
systemctl set-default graphical.target # 命令行 => 图形界面
systemctl set-default multi-user.target # 图形界面 => 命令行
cat /etc/inittab # 配置文件
# help
https://blog.csdn.net/qq_23014435/article/details/74347925
@netnr
netnr / openssl
Created Sep 25, 2019
openssl证书格式转换(pfx)
View openssl
# cer 转 pfx
openssl pkcs12 -export -out fullchain.pfx -inkey private.key -in fullchain.cer
# p7b 转 crt
openssl pkcs7 -print_certs -in fullchain.p7b -out fullchain.crt
# 分解命令:
pkcs12 # OpenSSL中PKCS#12文件的文件实用程序
-export -out fullchain.pfx # 导出并保存
-inkey private.key # 使用私钥文件作为与证书结合的私钥
@netnr
netnr / openssl
Created Sep 25, 2019
openssl证书格式转换(pfx)
View openssl
# cer 转 pfx
openssl pkcs12 -export -out fullchain.pfx -inkey private.key -in fullchain.cer
# p7b 转 crt
openssl pkcs7 -print_certs -in fullchain.p7b -out fullchain.crt
# 分解命令:
pkcs12 # OpenSSL中PKCS#12文件的文件实用程序
-export -out fullchain.pfx # 导出并保存
-inkey private.key # 使用私钥文件作为与证书结合的私钥
@netnr
netnr / du
Created Sep 23, 2019
Linux查看文件、文件夹大小
View du
# 磁盘整体情况
df -h
# 指定目录下所有文件夹大小
du -sh /netnr/*
du -sh # 当前目录
# 指定目录文件列表
ls -lh /netnr
ls # 当前目录
You can’t perform that action at this time.