关机&&重启 shutdown ``` //立即关机 shutdown -h now //一分钟后关机 shutdowm -h 1 //立即重启 shutdown -r now ``` halt:直接使用,关机 reboot:重启系统 sync:把内存的数据同步到磁盘 不管是重启还是关机,首先运行s ...
分类:
系统相关 时间:
2021-06-17 17:04:22
阅读次数:
0
1:开机同步 开机时自动同步可编辑 /etc/ntp/step-tickers 文件 1 vim /etc/ntp/step-tickers 2 3 # List of NTP servers used by the ntpdate service. 4 5 ntp.aliyun.com 6 tim ...
分类:
其他好文 时间:
2021-06-17 16:54:51
阅读次数:
0
About two months ago we started using Rollbar to notify us of various errors in our Web App. Ever since then we have been getting the occasional error ...
分类:
其他好文 时间:
2021-06-17 16:44:39
阅读次数:
0
订阅发布机制 github地址: https://github.com/mroderick/PubSubJS import PubSub from 'pubsub-js' // or when using CommonJS const PubSub = require('pubsub-js'); / ...
分类:
其他好文 时间:
2021-06-17 16:36:50
阅读次数:
0
快速搭建一个node服务,可以用于检查自己的单页应用是否有问题 app.js var exppress = require("express"); const fs = require("fs"); var app = exppress(); app.use(exppress.static("dis ...
分类:
其他好文 时间:
2021-06-16 18:10:25
阅读次数:
0
阿里云OSS前端通过服务端签名后直传和STS临时授权访问OSS的方式进行文件上传、分片上传、断点续传的实现。原文地址:https://blog.vchar.top/java/1622894400.html ...
分类:
Web程序 时间:
2021-06-16 18:02:21
阅读次数:
0
蓝牙通信开发流程 为了让两个设备上的两个应用程序之间建立连接,你必须同时实现服务端和客户端机制。 服务端:使用的是 BluetoothServerSocket 类,并且调用的是 listenUsingRfcommWithServiceRecord(string,UUID) 方法来获得一个Blueto ...
分类:
移动开发 时间:
2021-06-16 17:45:58
阅读次数:
0
1、原生集成 # https://github.com/elastic/elasticsearch-py # https://github.com/elastic/elasticsearch-dsl-py # Official low-level client for Elasticsearch # ...
分类:
编程语言 时间:
2021-06-16 17:36:10
阅读次数:
0
1、 进入数据 mysql -u root -p ‘原来的密码’ //进入数据库中 2、 切换数据库 use mysql; 3、使用以下命令开启root用户远程访问权限: CREATE USER 'root'@'%' IDENTIFIED BY '你的密码'; GRANT ALL ON *.* TO ...
分类:
数据库 时间:
2021-06-15 18:39:53
阅读次数:
0
动态拼接sql import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map.Entry; import org.apache.commons.lang3.StringUt ...
分类:
数据库 时间:
2021-06-15 18:35:42
阅读次数:
0