diff --git a/工作日志/2023-12-22.md b/工作日志/2023-12-22.md index e69de29..bb1bcd9 100644 --- a/工作日志/2023-12-22.md +++ b/工作日志/2023-12-22.md @@ -0,0 +1 @@ +学习 \ No newline at end of file diff --git a/本机环境/开发环境.md b/本机环境/开发环境.md index cdf297c..9027235 100644 --- a/本机环境/开发环境.md +++ b/本机环境/开发环境.md @@ -2,8 +2,12 @@ docker pull postgres:12.14 docker run --name pg12 -e POSTGRES_PASSWORD=root@123 -e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -d postgres:12.14 localhost:5432 postgres:root@123 -+ redis -localhost:6379 redispw ++ redis 免密 +```shell +docker pull redis:latest +docker run --restart=always -p 6379:6379 --name redis7 -d redis:latest +``` +localhost:6379 + oracle localhost:1521 zr:root@123 + neo4j @@ -32,3 +36,49 @@ docker run -d --name kafka-test -p 9092:9092 \ --link zookeeper-test \ --env KAF ```shell docker run -d --name kafka-test -p 9092:9092 \ --link zookeeper-test \ --env KAFKA_ZOOKEEPER_CONNECT=zookeeper-test:2181 \ --env KAFKA_ADVERTISED_HOST_NAME=localhost \ --env KAFKA_ADVERTISED_PORT=9092 \ --env KAFKA_LOG_DIRS=/kafka/logs \ -v kafka_vol:/kafka \ wurstmeister/kafka ``` + ++ minio http://localhost:9000 admin/admin123 +```shell +docker pull minio/minio +//在D盘创建minio文件夹并在里面再创建config文件夹 D:\minio\config +//创建容器 指定用户名密码为admin/admin123 +docker run --name minio -p 9000:9000 -p 9999:9999 -d --restart=always -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=admin123" -v D:\minio\data:/data -v D:\minio\config:/root/.minio minio/minio server /data --console-address '0.0.0.0:9999' +``` + ++ mysql8 root/root@123 +```shell +docker pull mysql +//创建存储 +D:\mysql\data D:\mysql\conf +//在conf下创建my.cnf文件 +[client] +#socket = /d/mysql/mysqld.sock +default-character-set = utf8mb4 +[mysqld] +#pid-file = /var/run/mysqld/mysqld.pid +#socket = /var/run/mysqld/mysqld.sock +#datadir = /var/lib/mysql +#socket = /d/mysql/mysqld.sock +#pid-file = /d/mysql/mysqld.pid +datadir = /d/mysql/data +character_set_server = utf8mb4 +collation_server = utf8mb4_bin +secure-file-priv= NULL +# Disabling symbolic-links is recommended to prevent assorted security risks +symbolic-links=0 +# Custom config should go here +!includedir /etc/mysql/conf.d/ + +//创建容器 指定密码为root@123 +docker run --restart=unless-stopped -d --name mysql8 -v /d/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /d/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql +``` + ++ rabbitmq http://localhost:15672 admin/admin123 +```shell +//带管理界面的MQ +docker pull rabbitmq:management +//指定用户名密码为admin admin123 15672是管理界面端口,5672是服务端口 +docker run --name=rabbitmq-server -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin123 -d rabbitmq:management +//查看日志 +docker logs rabbitmq-server +``` \ No newline at end of file