Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguo0426 committed Aug 18, 2021
1 parent 786220a commit a852dd1
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions laradock.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,34 @@ composer install --no-dev
//nginx
$ docker-compose exec nginx bash
配置多个应用间相互调用
docker-compose.yml
nginx
networks:
frontend:
aliases:
- www.chemex.test
backend:
aliases:
- www.chemex.test
*********************************
安装Redis遇到的问题
checking for libzstd files in default path... not found
configure: error: Please reinstall the libzstd distribution
ERROR: `/tmp/pear/temp/redis/configure --with-php-config=/usr/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=n --enable-redis-zstd=n' failed
$ sudo apt update && sudo apt install libzstd-dev
*********************************
PHP 版本变更后,需要把workspace,php-fpm两个容器重新构建
$ docker-compose build --no-cache workspace php-fpm
```

##### .env
Expand Down Expand Up @@ -78,13 +98,6 @@ sudo kill -9 xxxx
```

#### hosts修改
```
sudo vim /etc/hosts
sudo /etc/init.d/networking restart
```

#### Ubuntu
```
Expand Down Expand Up @@ -141,6 +154,14 @@ sudo /etc/init.d/networking restart
newgrp docker
docker ps
7. hosts修改
sudo vim /etc/hosts
sudo /etc/init.d/networking restart
```

#### MySQL
Expand Down Expand Up @@ -252,3 +273,19 @@ cat redis.conf | grep -v "#" | grep -v "^$" > test.conf

PHP性能监控之tideways
https://note.youdao.com/ynoteshare1/index.html?id=c2537c596b9f8595969c161469513a3f&type=note#/


************************************************************

kafkamanager

docker run -d -eZK_HOSTS=172.20.0.8 -eKAFKA_MANAGER_AUTH_ENABLED=false kafkamanager/kafka-manager




docker run -d --name kafkadocker_zookeeper_1 dockerkafka/zookeeper

docker run -d --name kafkadocker_kafka_1 --link laradock_zookeeper dockerkafka/kafka

docker run -it --rm --link laradock_zookeeper --link kafkadocker_kafka_1:kafka -p 9000:9000 -e ZK_HOSTS=172.20.0.8:2181 kafkamanager/kafka-manager

0 comments on commit a852dd1

Please sign in to comment.