use think\Config; $config = Config::get('database2'); //读取第二个数据库配置 $connect = Db::connect($config); //连接数据库 $data = $connect->name('admin')->find(); / ...
分类:
数据库 时间:
2020-11-07 16:21:15
阅读次数:
22
Ctrl + a:移动光标到命令行首 Ctrl + e:移动光标到命令行尾 Ctrl + b:同键盘左键,向左移动光标Ctrl + f:同键盘右键,向右移动光标 # 在mac中,需要在终端首选项中设置{将Option键用做Meta键}Alt + b:向前移动一个词的距离Alt + f:向后移动一个词 ...
分类:
其他好文 时间:
2020-11-04 19:00:45
阅读次数:
19
一、中间件简介 ? express本身功能极简,其他功能主要靠中间件来实现。中间件是封装了一个request对象和response对象的函数。 中间件的使用放在 app.use( ) 中。 二、静态资源服务中间件 app.use(express.static("./public")); 三、错误路由 ...
分类:
其他好文 时间:
2020-11-04 18:22:03
阅读次数:
24
Docker 管理工具 Portainer部署 一、官网 官网:http://www.portainer.io 演示地址:http://demo.portainer.io 用户名:admin 密码:tryportainer 复制代码 version: '3' services: portainer: ...
分类:
其他好文 时间:
2020-11-04 17:51:31
阅读次数:
19
参考地址:https://www.jianshu.com/p/6f3e3e989959 一、ElasticSearch 安装,安装机器: 192.168.10.107 192.168.10.108 192.168.9.178 yyapp@H-LAPP-V307 config]$ cat elasti ...
分类:
其他好文 时间:
2020-11-02 09:42:10
阅读次数:
23
3.2 settings.py 外加跨域 """ Django settings for django01 project. Generated by 'django-admin startproject' using Django 2.2. For more information on this ...
分类:
其他好文 时间:
2020-11-01 21:33:22
阅读次数:
23
Vue和django的前后端分离项目,之前通过在django中允许跨域访问实现了跨域请求,但为了使每个请求带上session信息,我设置了withCredentials ,即: axios.defaults.withCredentials = true 然后跨域请求时会出现如下问题: Respons ...
分类:
其他好文 时间:
2020-11-01 09:29:09
阅读次数:
31
system-config-users(8) System Config Tools Manual system-config-users(8) NAME system-config-users - User and Group Management tool SYNOPSIS system-con ...
分类:
其他好文 时间:
2020-10-31 02:00:00
阅读次数:
15
##import import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras import layers from tensorflow.keras.layers impor ...
分类:
其他好文 时间:
2020-10-31 01:42:28
阅读次数:
13
当前的分布式微服务云架构平台使用Maven构建,所以common-service的通用服务按照maven构建独立的系统服务,结构如下:particle-commonservice:springcloud系统服务根项目,所有服务项目的根依赖。particle-commonservice-admin:springcloud/boot的微服务管理、监控平台(里面会集成很多的组件服务项目)particle
分类:
编程语言 时间:
2020-10-30 13:09:34
阅读次数:
22