1.package.json 1)devDependencies 添加 "nodemon": "^1.18.6" 2)scripts 添加 "start": "nodemon --watch '**/*.ts' --exec ts-node src/index.ts" 3)npm install 4 ...
分类:
Web程序 时间:
2020-08-03 00:53:10
阅读次数:
217
下载包 yum install -y ntpdate 同步网络时间 ntpdate 0.asia.pool.ntp.org 若上面的时间服务器不可用,也可以改用如下服务器进行同步: time.nist.gov time.nuri.net 0.asia.pool.ntp.org 1.asia.pool ...
分类:
系统相关 时间:
2020-08-02 22:20:43
阅读次数:
128
1. Install SSH service $ sudo apt install openssh-server$ systemctl status sshd$ sudo systemctl restart ssh$ sudo ufw allow ssh$ sudo systemctl enable ...
分类:
系统相关 时间:
2020-08-02 19:56:16
阅读次数:
128
首先修改文件/etc/profile,打开终端输入sudo vim /etc/profile运行然后按要求输入密码进行文件编辑,如果没有安装vim(先sudo apt-get install vim) 进入文件编辑页面后,按i进入编辑状态,把以下内容复制到文件末尾, XMODIFIERS="@im= ...
分类:
微信 时间:
2020-08-02 16:12:46
阅读次数:
292
.txt文件原本的编码格式为国标或者ANSI,需要转换为utf-8,防止中文乱码。 只要修改path路径为.txt文件所在目录即可。 如果出现**No module named 'chardet'错误,先执行pip install chardet**安装这个库。 注意:如果.txt文件本身已经是ut ...
分类:
其他好文 时间:
2020-08-02 16:10:52
阅读次数:
122
生产上新入网的服务器都需要安装prometheus的监控客户端软件,主要步骤有:新建监控用户、拷贝客户端软件、拉起客户端进程、开机自启动。本文记录了使用ansible的role方式批量快速的安装该客户端软件。
分类:
其他好文 时间:
2020-08-02 10:21:20
阅读次数:
93
Python没有自带openyxl,需要安装: pip install openyxl 打开excel文档: openyxl.load_workbook(excel地址) - 打开现有excel文件 openyxl.Workbook() - 新建一个excel文件 返回一个工作博对象 import ...
分类:
编程语言 时间:
2020-08-01 15:49:11
阅读次数:
108
#1.下载安装 wget http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz 解压缩: tar zxvf bash-5.0.tar.gz 进入目录: cd bash-5.0 开始编译: ./configure&&make&&make install 编译完成后,重 ...
分类:
其他好文 时间:
2020-08-01 12:46:54
阅读次数:
96
yuminstall-yzsh#安装zshsh-c"$(curl-fsSLhttps://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"#安装ohmyzshorsh-c"$(wgethttps://raw.githubusercontent.com/robbyrussell/oh-my-zsh/m
分类:
其他好文 时间:
2020-07-31 19:20:37
阅读次数:
76