学习笔记
· ☕ 1 分钟
1 2 3 DocumentRoot "/var/www/html" #指定虚拟目录 ServerName www.baidu.com #虚拟目录绑定的域名 DirectoryIndex aa.php #默认首页文件

· ☕ 3 分钟
Docker Compose基础指令 快速入门 准备工作 1 2 yum install python-pip yum -y install epel-release 来个练习吧 1.1为项目创建目录 1 2 mkdir composetest cd composetest 1.2在项目目录中创建一个app.py的文件: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import time import redis from

· ☕ 2 分钟
Docker安装以及常用操作 1、安装Docker 1.1安装gcc和gcc-c++ 1 yum -y install gcc &&yum -y install gcc-c++ 1.2安装 utils 1 yum install -y yum-utils 1.3安装Docker 1 2 3 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum makecache fast yum install docker-ce docker-ce-cli containerd.io 1.4启动Docker 1 2 service docker

· ☕ 1 分钟
MongoDB基础操作 查看数据库 语法 show databases 效果 1 2 3 4 5 6 > show databases admin 0.000GB canaan 0.000GB canaan_test 0.002GB config 0.000GB local 0.000GB 选择/创建数据库 语法 use #有数据则选择,没有则创建 删除数据库 语法 db.dropDatabase() 查看集合 语法 show clooections 效果 1 2 3 > show collections associated_records records 创建集合 语法 db.