We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、在centos7环境下测试通过 2、需要提前安装好docker和docker-compose 3、执行:sh -x install.sh
mkdir -p /usr/local/redis_manager/mysql/datadir cat > /usr/local/redis_manager/docker-compose.yml <<EOF version: '3' services: mysqldb: image: mysql:5.7 container_name: mysql restart: always ports: - '3306:3306' volumes: - './mysql/my.cnf:/etc/mysql/my.cnf' - './mysql/datadir:/var/lib/mysql' environment: MYSQL_DATABASE: redis_manager MYSQL_ROOT_PASSWORD: 123456 networks: - redis-net redis-manager: image: reasonduan/redis-manager container_name: redis-manager restart: always ports: - '8182:8182' environment: DATASOURCE_DATABASE: redis_manager DATASOURCE_URL: 'jdbc:mysql://mysqldb:3306/redis_manager?useUnicode=true&characterEncoding=utf-8' DATASOURCE_USERNAME: root DATASOURCE_PASSWORD: 123456 TZ: Asia/Shanghai depends_on: - mysqldb networks: - redis-net networks: redis-net: driver: bridge EOF cat > /usr/local/redis_manager/mysql/my.cnf <<EOF [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking lower_case_table_names=1 default-time_zone = '+8:00' innodb_buffer_pool_size = 512M server-id = 100 #log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 1 max_binlog_size = 500M character-set-server = utf8mb4 collation-server = utf8mb4_general_ci #slow_query_log_file = mysql-slow.log slow_query_log = 1 long_query_time = 1 [client] default-character-set=utf8mb4 [mysqldump] quick quote-names max_allowed_packet = 1024M !includedir /etc/mysql/conf.d/ EOF cd /usr/local/redis_manager docker-compose -f docker-compose.yml up -d
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1、在centos7环境下测试通过
2、需要提前安装好docker和docker-compose
3、执行:sh -x install.sh
vi install.sh
The text was updated successfully, but these errors were encountered: