猫言猫语

严以律己·宽以待人·自强不息·知行合一

CentOS 7 安装 MySQL 8.0

| CentOS 7 安装 MySQL 8.0已关闭评论

yum install -y https://repo.mysql.com/mysql-community-release-el7.rpm
yum install -y mysql-community-server
systemctl enable mysqld
systemctl start mysqld

# 找临时密码
cat /var/log/mysqld.log

mysql -p 输入密码

set global validate_password.policy=0;
set global validate_password.length=1;
alter user 'root'@'localhost' identified by '新密码';

mysql -u root -p

macOS 手动安装 oh-my-zsh

| macOS 手动安装 oh-my-zsh已关闭评论

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Portainer 快速上手

| Portainer 快速上手已关闭评论

docker volume create portainer_data
docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer 

Dubbo Admin 安装

| Dubbo Admin 安装已关闭评论

wget https://github.com/apache/dubbo-admin/archive/0.2.0.tar.gz
tar zxvf 0.2.0.tar.gz
cd dubbo-admin-0.2.0
./mvnw clean package
java -jar dubbo-admin-distribution/target/dubbo-admin-0.2.0.jar --server.port=8081

CentOS 7 安装 nginx

| CentOS 7 安装 nginx已关闭评论

yum install -y epel-release
yum install -y nginx

Debian 9 安装 ZooKeeper

| Debian 9 安装 ZooKeeper已关闭评论

sudo apt install zookeeperd
sudo systemctl enable zookeeper
sudo systemctl restart zookeeper
[email protected]:/var/lib/zookeeper# /usr/share/zookeeper/bin/zkCli.sh
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /
[zookeeper]
[zk: localhost:2181(CONNECTED) 1]
[zk: localhost:2181(CONNECTED) 0] create /config.json {}
Created /config.json
[zk: localhost:2181(CONNECTED) 1]
[zk: localhost:2181(CONNECTED) 0] get /config.json
{}
cZxid = 0xb
ctime = Fri Apr 03 17:27:50 GMT+00:00 2020
mZxid = 0xb
mtime = Fri Apr 03 17:27:50 GMT+00:00 2020
pZxid = 0xb
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 2
numChildren = 0
[zk: localhost:2181(CONNECTED) 1]
[zk: localhost:2181(CONNECTED) 0] delete /config.json
[zk: localhost:2181(CONNECTED) 1]