firewall的操作 1.firewalld的基本使用 启动: systemctl start firewalld查状态:systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld在开 ...
分类:
其他好文 时间:
2021-05-24 06:54:27
阅读次数:
0
博主在用 Hexo 搭建博客的时候,一直在考虑评论系统用什么,最终比较了多家,决定用 Gitalk,这是一个基于 Github Issues 的评论系统,所有的评论内容都保存在 Github Issues 中,每篇博客对应一个 Issues。只有登陆 Github 账号才能评论,大多数人应该都会有 ...
分类:
其他好文 时间:
2021-05-24 06:44:23
阅读次数:
0
1、查看当前防火墙的状态 sudo ufw status #输入安装系统时创建的密码,乌班图不支持直接使用root账号登录 inactive状态是防火墙关闭状态 active是开启状态。 2、开启防火墙 sudo ufw enable 输入y会提示Firewall is active and ena ...
分类:
其他好文 时间:
2021-05-24 06:41:54
阅读次数:
0
单纯使用读写分离功能 3.20.10.0版本开始dble?持单纯的读写分离,可以和分库分表功能分开单独使?。 若想启?dble的读写分离,仅需在 user.xml ?件中配置 rwSplitUser并指定对应的dbGroup即可。 1、修改user.xml配置文件 <dble:user xmlns: ...
分类:
数据库 时间:
2021-05-24 06:12:25
阅读次数:
0
## nginx的日志```SHELL #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_u ...
分类:
系统相关 时间:
2021-05-24 04:12:29
阅读次数:
0
###1、http.STATUS_CODES 是一个对象,属性名都是状态码,属性值则是该状态码的简短解释。 ###2、用法 var http = require('http'); //引入http模块 http.createServer(function(req, res) { //调用http模块 ...
分类:
Web程序 时间:
2021-05-24 02:07:12
阅读次数:
0
crontab(定时任务) 1.当linux发行的版本有service这个命令时候(service 是服务。必须root用户才可以支持) service crond status 查看定时任务运行状态命令 service crond start 启动定时任务命令 service crond stop ...
分类:
系统相关 时间:
2021-05-24 01:36:04
阅读次数:
0
安装docker sudo apt-get install docker.io 创建文件目录 mkdir docker-images 修改本地存储路径 # 查看服务状态 sudo systemctl status docker ● docker.service - Docker Applicatio ...
分类:
其他好文 时间:
2021-05-04 15:54:46
阅读次数:
0
#结构关系图 #本地仓库初始化 命令为 git-init #add commit命令 #status命令 查看工作区和缓存区的状态 #log命令 操作过多会导致log一页显示不来,通过空格和b来切换上一页和下一页 退出q 显示信息简洁化命令 git log --oneline git reflog ...
分类:
其他好文 时间:
2021-05-03 12:06:30
阅读次数:
0
使用准备 - 下载安装 下载安装 v_box , 下载安装 Vagrant 创建 Vagrantfile 在要安装的目录中进行 vagrant init centos/7 下载镜像生成虚拟机 vargrant up 如果本地是有镜像的话则会使用本地镜像, 若没有则下载网络镜像需要一些时间 执行完毕后 ...
分类:
其他好文 时间:
2021-05-03 11:58:00
阅读次数:
0