[root@localhost ~]# systemctl status mysqld ● mysqld.service - LSB: start and stop MySQL Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled) Active: active (running) since 六 2023-11-25 14:49:52 CST; 2min 37s ago Docs: man:systemd-sysv-generator(8) Process: 1123 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=0/SUCCESS) CGroup: /system.slice/mysqld.service ├─1160 /bin/sh /www/server/mysql/bin/mysqld_safe --datadir=/www/server/data --pid-file=/www/server/data/lo... └─2119 /www/server/mysql/bin/mysqld --basedir=/www/server/mysql --datadir=/www/server/data --plugin-dir=/w...
11月 25 14:49:49 localhost.localdomain systemd[1]: Starting LSB: start and stop MySQL... 11月 25 14:49:52 localhost.localdomain mysqld[1123]: Starting MySQL... SUCCESS! 11月 25 14:49:52 localhost.localdomain systemd[1]: Started LSB: start and stop MySQL.
47.[填空题] 服务器镜像1中宝塔面板的绑定端口为?[答题格式: 123] (1.5分)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
[root@localhost ~]# bt 14 =============================================== 正在执行(14)... =============================================== curl: (28) Resolving timed out after 10525 milliseconds ================================================================== BT-Panel default info! ================================================================== 外网面板地址: http://:8887/81d211bf 内网面板地址: http://192.168.1.136:8887/81d211bf *以下仅为初始默认账户密码,若无法登录请执行bt命令重置账户/密码登录 username: 32zkmllh password: b3a006c0 If you cannot access the panel, release the following panel port [8887] in the security group 若无法访问面板,请检查防火墙/安全组是否有放行面板[8887]端口 ==================================================================
[root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.44 MySQL Community Server (GPL)
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.00 sec)
mysql> exit Bye [root@localhost ~]# docker ps Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
发现了podman(跟docker差不多)
1 2 3 4
[root@localhost ~]# podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ec89c7a0a325 docker.io/library/mysql:5.6 mysqld 3 weeks ago Exited (0) 3 weeks ago 0.0.0.0:3306->3306/tcp mysql
[root@localhost ~]# podman restart ec ec89c7a0a325c4f5b780a8014685206a48870700b62376aa4870b69f01e69657 [root@localhost ~]# podman exec -it ec mysql -uroot -p123 Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.51-log MySQL Community Server (GPL)
Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | xyz.cn | +--------------------+ 4 rows in set (0.00 sec)