猫言猫语

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

CentOS 7 安装 PostgreSQL 9.2

| CentOS 7 安装 PostgreSQL 9.2已关闭评论

yum install -y postgresql-server
postgresql-setup initdb
systemctl restart postgresql
systemctl enable postgresql
su - postgres
psql
\list
CREATE DATABASE demodb;
\connect demodb
CREATE TABLE demotable(title char(32));
INSERT INTO demotable (title) VALUES('title');
SELECT * FROM demotable;
\quit

CentOS 7 安装 Docker 20.10.2

| CentOS 7 安装 Docker 20.10.2已关闭评论

yum install -y yum-utils
yum-config-manager \
  --add-repo \
  https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl start docker
systemctl enable docker
docker run hello-world

使 OpenLDAP 支持 bcrypt 密码

| 使 OpenLDAP 支持 bcrypt 密码已关闭评论

一、编译 openldap 源码

yum install -y wget git libtool libdb-devel libtool-ltdl-devel krb5-devel
wget https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.57.tgz
tar zxvf openldap-2.4.57.tgz
cd openldap-2.4.57
./configure --libdir=/usr/lib64 --enable-modules
make depend
make
(更多…)

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

使用 Docker 镜像快速运行 Sentinel Dashboard

| 使用 Docker 镜像快速运行 Sentinel Dashboard已关闭评论

我们可以使用 Docker 镜像快速运行 Sentinel Dashboard

docker run -p 8858:8858 bladex/sentinel-dashboard

再使用默认的用户名/密码:sentinel/seltinel 登录,然后你就可以看到很强大的控制台界面了

基于 Docker 快速启动 Nacos

| 基于 Docker 快速启动 Nacos已关闭评论

基于 Docker 快速启动一个使用 Derby 数据库、单机模式的 Nacos 用于测试

docker run -p 8848:8848 --env MODE=standalone nacos/nacos-server

使用浏览器打开启动提示中的 Console 地址:http://10.0.0.8:8848/nacos/index.html,输入默认用户名/密码:nacos/nacos,即可开始测试体验。

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