Using Firebase to host multi website

Initiate your project cd into your working directory, using firebaes init to initiate your website. Then three files will appear under your folder, “.firebaserc”, “.gitignore” and “firebase.json”. Change your setting In “firebase.json” file, it contains your hosting settings. a configuration example below: { “hosting”: { “site”: “XXXXXXX”, // the site name in your Firebase console…

install mysqlclient on win10 python37

from: https://stackoverflow.com/questions/51146117/installing-mysqlclient-in-python-3-6-in-windows I am using python3.7 on Windows 10 operating system. I had same issue and after a long research I had installed it successfully. Install “Microsoft Visual C++ Build Tools” AND My OS is having 64 bit operating system but still then it need to install 32 bit version “mysqlclient‑1.4.2‑cp37‑cp37m‑win32.whl” Download binary wheels from…

flutter-error Unable to locate a development device; please run ‘flutter doctor’ for information about installing additional components

from: https://github.com/flutter/flutter/issues/19805 when you encounter this error, it means that flutter cannot find the SDK in your system. You can install the android sdk manually on your operation system. First, download SDK here: https://developer.android.com/studio skd-tools-windows-334XXXX.zip unzip it into one directory Second, find the \tools\bin file and open cmd shell here. run “.\sdkmanager.bat “platforms;android-28” “platform-tools” “build-tools:28.0.3”…

centos release memory

Centos 内存占满 释放内存 2013年09月11日 11:44:27 阅读数:26044 一台老的PHP后台服务器,今天用 free -m 查看,发现内存跑满了。 再 top,然后按下shift+m,也就是按内存占用百分比排序,发现排在第一的进程,才占用0.9%,那是什么占用的呢?谷歌了一下,据说是centos为了提高效率,把部分使用过的文件缓存到了内存里。如果是这样的话,我又不需要这样的文件性能,那就可以释放。如下两个命令就可以: #sync #echo 3 > /proc/sys/vm/drop_caches 内存释放后,就占用很低了

npm install命令遇到relocation error: npm: symbol SSL_set_cert_cb的报错问题

在安装elasticsearch-head的过程中npm install遇到如下报错 [root@localhost elasticsearch-head]# npm install npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference 网上找了一下相关资料,发现最直接有效的方法是升级openssl,执行yum update openssl -y命令即可。 升级之前版本信息: [root@localhost elasticsearch-head]# openssl version OpenSSL 1.0.1i 6 Aug 2014 升级之后: [root@localhost elasticsearch-head]# openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 此时再次执行,报错消除

docker kafka

https://blog.csdn.net/snowcity1231/article/details/54946857 参考:https://blog.csdn.net/qq_35904833/article/details/74525485 https://blog.csdn.net/Mr_Hou2016/article/details/79484032   1、下载镜像 这里使用了wurstmeister/kafka和wurstmeister/zookeeper这两个版本的镜像 docker pull wurstmeister/zookeeper  docker pull wurstmeister/kafka 在命令中运行docker images验证两个镜像已经安装完毕 2、启动 1、启动zookeeper docker run -d –name zookeeper -p 2181:2180 -t wurstmeister/zookeeper 2、启动kafka docker run –name kafka -e KAFKA_ZOOKEEPER_CONNECT=“192.168.1.136:2181” -e KAFKA_ADVERTISED_HOST_NAME=“192.168.1.136” -e KAFKA_BROKER_ID=1 -e ZK=zk -p 9092:9092 –link zookeeper:zk -t wurstmeister/kafka 可以通过docker ps查看启动状态 3、测试发送消息 执行docker ps,找到kafka的CONTAINER ID,进入容器内部: docker exec -it ${CONTAINER ID} /bin/bash 进入kafka默认目录 cd opt/kafka_2.11-0.10.1.1/ 下面就是跟一般的kafka没什么区别了 创建一个主题: bin/kafka-topics.sh –create –zookeeper zookeeper:2181 –replication-factor 1 –partitions 1 –topic mykafka 运行一个消息生产者,指定topic为刚刚创建的主题 bin/kafka-console-producer.sh –broker-list localhost:9092 –topic mykafka 运行一个消费者,指定同样的主题 bin/kafka-console-consumer.sh –zookeeper zookeeper:2181 –topic mykafka –from-beginning 这时在生产者输入测试消息,在消费者就可以接收消息了   ———- [1]在Docker上运行Apache Kafka [2]基于docker部署的微服务架构(五): docker环境下的zookeeper和kafka部署