From fd7f8b530eca1f7335aa537e8ab1618b9a7c6943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Wed, 31 Jul 2024 13:18:41 +0800 Subject: [PATCH] 'commit' --- ...件.txt => 0、需要准备的软件.md} | 56 ++++++-- 操作文档/1、安装RockyLinux.md | 49 +++++++ 操作文档/1、安装RockyLinux.txt | 28 ---- ...装Mysql5.7.txt => 2、安装Mysql5.7.md} | 40 +++++- ...安装Mongodb.txt => 3、安装Mongodb.md} | 92 +++++++++--- 操作文档/4、安装Redis.md | 109 ++++++++++++++ 操作文档/4、安装Redis.txt | 24 ---- ...装RocketMQ.txt => 5、安装RocketMQ.md} | 0 ...=> 6、MongoDB数据库下载与还原.md} | 92 ++++++++---- ...t => 7、Mysql数据库下载与还原.md} | 99 ++++++++++--- 操作文档/mongodb.conf | 31 ---- .../服务器环境配置操作文档.md | 135 ------------------ 12 files changed, 457 insertions(+), 298 deletions(-) rename 操作文档/{0、需要准备的软件.txt => 0、需要准备的软件.md} (77%) create mode 100644 操作文档/1、安装RockyLinux.md delete mode 100644 操作文档/1、安装RockyLinux.txt rename 操作文档/{2、安装Mysql5.7.txt => 2、安装Mysql5.7.md} (84%) rename 操作文档/{3、安装Mongodb.txt => 3、安装Mongodb.md} (55%) create mode 100644 操作文档/4、安装Redis.md delete mode 100644 操作文档/4、安装Redis.txt rename 操作文档/{5、安装RocketMQ.txt => 5、安装RocketMQ.md} (100%) rename 操作文档/{6、MongoDB数据库下载与还原.txt => 6、MongoDB数据库下载与还原.md} (57%) rename 操作文档/{7、Mysql数据库下载与还原.txt => 7、Mysql数据库下载与还原.md} (74%) delete mode 100644 操作文档/mongodb.conf delete mode 100644 操作文档/服务器环境配置操作文档.md diff --git a/操作文档/0、需要准备的软件.txt b/操作文档/0、需要准备的软件.md similarity index 77% rename from 操作文档/0、需要准备的软件.txt rename to 操作文档/0、需要准备的软件.md index 5d777ed..527e1f2 100644 --- a/操作文档/0、需要准备的软件.txt +++ b/操作文档/0、需要准备的软件.md @@ -1,10 +1,21 @@ -# 以下文件都已下载完毕,保存在10.10.21.21的h盘共享中,需要: +## 需要下载的软件列表 + + + +### 说明: + +``` +以下文件都已下载完毕,保存在10.10.21.21的h盘共享中,需要: win+r 输入 \\10.10.21.21 Administrator dsideal +``` + +#### $1、Mysql$ -1、Mysql +```xml +Mysql url: jdbc:mysql://139.224.72.142:3307/yltcharge?useUnicode=true&useSSL=false&characterEncoding=UTF-8 username: ycharge password: ycharge @@ -15,9 +26,12 @@ select @@version; 5.7.42 # 我下载的Mysql 5.7.42 https://downloads.mysql.com/archives/community/ https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.42-el7-x86_64.tar.gz +``` +#### $2、Mongodb$ -2、Mongodb +```xml +Mongodb host: 139.224.72.142 port: 27017 database: ycharge @@ -30,21 +44,35 @@ https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-4.2.24.tgz #Windows版本下载 https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24.zip +``` -3、Redis +#### $3、Redis$ + +```xml +Redis redis_version:5.0.14 host: 139.224.72.142 port: 6380 password: rzyc#redis https://download.redis.io/releases/redis-5.0.14.tar.gz +``` + + -4、RocketMQ +#### $4、RocketMQ$​ + +``` https://rocketmq.apache.org/zh/docs/4.x/quickstart/01quickstart rocketmq-all-4.9.4-bin-release.zip rocketmq-all-4.9.4-source-release.zip +``` + -5、JDK1.8 + +#### $5、JDK1.8 $ + +``` https://www.oracle.com/java/technologies/downloads/?er=221886#java8-windows oracle的登录名: 10402852@qq.com @@ -53,13 +81,21 @@ oracle的登录名: https://download.oracle.com/otn/java/jdk/8u421-b09/d8aa705069af427f9b83e66b34f5e380/jdk-8u421-windows-x64.exe?AuthParam=1721962299_c01bf4ce53f33b8cb0963dee166167cb https://download.oracle.com/otn/java/jdk/8u421-b09/d8aa705069af427f9b83e66b34f5e380/jdk-8u421-linux-x64.tar.gz +``` + +#### $6、Maven使用$ -6、Maven使用 +``` 在完成编译后,黄海将自己用的Maven完整打包。 -7、Rocky Linux 9 -https://rockylinux.org/zh-CN/download -https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-dvd.iso +``` +#### $7、Rocky\ Linux\ 9$​ + +``` +https://rockylinux.org/zh-CN/download +https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-dvd.iso +``` + diff --git a/操作文档/1、安装RockyLinux.md b/操作文档/1、安装RockyLinux.md new file mode 100644 index 0000000..911a6aa --- /dev/null +++ b/操作文档/1、安装RockyLinux.md @@ -0,0 +1,49 @@ +## 安装$Rocky$ $Linx$ $9$ + + + +#### 最终安装的服务器$IP$与端口 + +``` +IP +10.10.14.210 + +端口 +22 + +用户名与密码 +root +DsideaL4r5t6y7u + +SSH +``` + + + +### 注意以下几点 +- $Rocky$ $Linux$在安装界面时,可以选择$GUI$界面,还是$Mini$安装无$GUI$界面,需要动手选择好! +- 安装界面上输入密码时,有允许Rocky Linux 9 root用户通过ssh登录的选项,注意选择! +- 分区时,先$Auto$,然后删除掉 /和 /$home$,然后再进行一遍所有剩余空间到 / 的操作。 + + +### 常用命令 + +``` +# 临时关闭selinux + +setenforce 0 + +# 永久关闭selinux + +vi /etc/sysconfig/selinux +SELINUX=disabled + +# 临时关闭防火墙: + +systemctl stop firewalld + +# 永久关闭防火墙: + +systemctl disable firewalld +``` + diff --git a/操作文档/1、安装RockyLinux.txt b/操作文档/1、安装RockyLinux.txt deleted file mode 100644 index 249ec61..0000000 --- a/操作文档/1、安装RockyLinux.txt +++ /dev/null @@ -1,28 +0,0 @@ -#IP和端口 -10.10.14.210 -22 - -# 用户名与密码 -root -DsideaL4r5t6y7u - -### 注意以下几点 -(1) RockyLinux在安装界面时,可以选择GUI界面,还是Mini安装无GUI界面,需要动手选择好! -(2) 在安装界面上输入密码时,有允许Rocky Linux 9 root用户通过ssh登录的选项,注意选择! -(3) 分区时,先Auto,然后删除掉 /和 /home,然后再进行一遍所有剩余空间到 / 的操作。 - - -### 常用命令 - -# 临时关闭selinux -setenforce 0 - -# 永久关闭selinux -vi /etc/sysconfig/selinux -SELINUX=disabled - -# 临时关闭防火墙: -systemctl stop firewalld - -# 永久关闭防火墙: -systemctl disable firewalld \ No newline at end of file diff --git a/操作文档/2、安装Mysql5.7.txt b/操作文档/2、安装Mysql5.7.md similarity index 84% rename from 操作文档/2、安装Mysql5.7.txt rename to 操作文档/2、安装Mysql5.7.md index 14fffe7..d991bca 100644 --- a/操作文档/2、安装Mysql5.7.txt +++ b/操作文档/2、安装Mysql5.7.md @@ -1,5 +1,8 @@ -安装Mysql +### 安装$Mysql$ $5.7$​ + + +```shell yum install lrzsz -y mkdir /usr/local -p cd /usr/local @@ -42,24 +45,45 @@ port=22066 socket=/tmp/mysql.sock [mysql] socket=/tmp/mysql.sock -# 忽略大小写 -#lower_case_table_names=1 +``` + + + +#### 忽略大小写 + +```shell +lower_case_table_names=1 +``` + + -# 管理MySQL_etc/init.d + + +#### 管理MySQL_etc/init.d + +```shell mkdir /etc/init.d -p cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld +``` + -# 重定向文件 +#### 重定向文件 + +``` ln -s /usr/lib64/libncurses.so.6.2 /usr/lib64/libncurses.so.5 ln -s /usr/lib64/libtinfo.so.6.2 /usr/lib64/libtinfo.so.5 #启动、重启命令 service mysqld start service mysqld restart +``` + -# 重置密码 +#### 重置密码 + +``` /etc/init.d/mysqld stop mysqld_safe --user=mysql --skip-grant-tables --skip-networking & @@ -75,12 +99,16 @@ exit /etc/init.d/mysqld restart mysql -uroot -pDsideaL147258369 +``` 现在用Navicat Prenium就可以远程访问到数据库了。 +``` YLT项目中使用的用户名:ycharge,密码:ycharge 需要创建 CREATE USER 'ycharge'@'%' IDENTIFIED BY 'ycharge'; GRANT all privileges ON yltcharge.* TO 'ycharge'@'%'; FLUSH PRIVILEGES; +``` + diff --git a/操作文档/3、安装Mongodb.txt b/操作文档/3、安装Mongodb.md similarity index 55% rename from 操作文档/3、安装Mongodb.txt rename to 操作文档/3、安装Mongodb.md index a568b5b..d841448 100644 --- a/操作文档/3、安装Mongodb.txt +++ b/操作文档/3、安装Mongodb.md @@ -1,3 +1,6 @@ +## 安装$MongoDb$ + +```shell cd /usr/local rz -be 选择:mongodb-linux-x86_64-rhel80-4.2.24.tgz @@ -11,13 +14,9 @@ export PATH=/usr/local/mongodb/bin:$PATH #生效 source /etc/profile -# 创建文件 cd /usr/local/mongodb -touch mongodb.conf mkdir db mkdir log -cd log -touch mongodb.log #设置文件夹权限 cd /usr/local/mongodb @@ -25,13 +24,66 @@ chmod 777 db chmod 777 log # 上传配置文件 -rz -be +rz -be +``` + +##### $mongodb.conf$ + +```shell +# 数据库目录 +dbpath = /usr/local/mongodb/db + +# 绑定IP +bind_ip = 0.0.0.0 + +# 端口 +port = 27017 + +# 日志文件 +logpath = /usr/local/mongodb/log/mongod.log + +# 日志追加方式 +logappend = true + +# write操作首先写入“日记”,是一个数据安全的设置 +journal = true + +# 后台运行 +fork = true + +# 是否以安全认证方式运行,默认是不认证的非安全方式 +noauth = true +# auth = true -/usr/local/mongodb/mongodb.conf +# 是不是每个数据库一个目录 +directoryperdb = true -# 启动MongoDB +# 最大连接数 +maxConns = 10000 +``` + + + +#### 启动$MongoDB$ + +```shell /usr/local/mongodb/bin/mongod -f /usr/local/mongodb/mongodb.conf +``` + + +#### 关闭$MongdoDB$ + +``` +# 关闭数据库 +/usr/local/mongodb/bin/mongod --shutdown --dbpath /usr/local/mongodb/db +``` + + + +#### 分配管理员密码 + +``` mongo use admin @@ -40,8 +92,19 @@ use admin db.createUser({ user: "admin", pwd: "DsideaL147258369", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] }) # 关闭不用登录的实例,然后重新启动一次 -mongo -u admin -p DsideaL147258369 --authenticationDatabase admin +# noauth = true + auth = true + +# 重启 MongoDB 服务 +mongo +db.updateUser('root',{pwd:'DsideaL147258369',roles:[{role:'root',db:'admin'}]}) +``` + + +# 常用命令 + +``` yum install net-tools -y netstat -lanp | grep "27017" @@ -52,15 +115,12 @@ show dbs #查看默认数据库 use admin #切换到admin数据库 exit #退出MongoDB控制台 +``` + + + + -# 关闭数据库 -/usr/local/mongodb/bin/mongod --shutdown --dbpath /usr/local/mongodb/db -mongo -db.updateUser('root',{pwd:'DsideaL147258369',roles:[{role:'root',db:'admin'}]}) -重启 MongoDB 服务 ---- -在线Yaml检查器 -https://www.bejson.com/validators/yaml_editor/ \ No newline at end of file diff --git a/操作文档/4、安装Redis.md b/操作文档/4、安装Redis.md new file mode 100644 index 0000000..1332bfa --- /dev/null +++ b/操作文档/4、安装Redis.md @@ -0,0 +1,109 @@ +## 安装$Redis$ + +```shell +cd /usr/local +rz -be +选择:redis-5.0.14.tar.gz + +tar -zxvf redis-5.0.14.tar.gz + +rm -rf redis-5.0.14.tar.gz + +cd /usr/local/redis-5.0.14 +yum install make gcc -y +make MALLOC=libc +make PREFIX=/usr/local/redis install +cp /usr/local/redis-5.0.14/redis.conf /usr/local/redis/bin +rm -rf /usr/local/redis-5.0.14/ +``` + + + +修改配置文件: + +$redis.conf$ + +```shell +bind 0.0.0.0 +port 6379 +tcp-backlog 511 +timeout 0 +tcp-keepalive 300 +daemonize yes +supervised no +pidfile /var/run/redis_6379.pid +loglevel notice +logfile "" +databases 16 +always-show-logo yes +save 900 1 +save 300 10 +save 60 10000 +stop-writes-on-bgsave-error yes +rdbcompression yes +rdbchecksum yes +dbfilename dump.rdb +dir ./ + +replica-serve-stale-data yes +replica-read-only yes +repl-diskless-sync no +repl-diskless-sync-delay 5 +repl-disable-tcp-nodelay no +replica-priority 100 + + +requirepass rzyc#redis + + +lazyfree-lazy-eviction no +lazyfree-lazy-expire no +lazyfree-lazy-server-del no +replica-lazy-flush no + + +appendonly no +appendfsync everysec +aof-load-truncated yes +aof-use-rdb-preamble yes +lua-time-limit 5000 + +slowlog-log-slower-than 10000 +slowlog-max-len 128 +latency-monitor-threshold 0 + +notify-keyspace-events "" + +hash-max-ziplist-entries 512 +hash-max-ziplist-value 64 +list-max-ziplist-size -2 +list-compress-depth 0 +set-max-intset-entries 512 +zset-max-ziplist-entries 128 +zset-max-ziplist-value 64 + +hll-sparse-max-bytes 3000 + +stream-node-max-bytes 4096 +stream-node-max-entries 100 + +activerehashing yes + +hz 10 +dynamic-hz yes +aof-rewrite-incremental-fsync yes + +rdb-save-incremental-fsync yes +``` + + + +#### 启动 + +``` +cd /usr/local/redis/bin +./redis-server ./redis.conf & +``` + + + diff --git a/操作文档/4、安装Redis.txt b/操作文档/4、安装Redis.txt deleted file mode 100644 index 461e364..0000000 --- a/操作文档/4、安装Redis.txt +++ /dev/null @@ -1,24 +0,0 @@ -cd /usr/local -rz -be -选择:redis-5.0.14.tar.gz -tar -zxvf redis-5.0.14.tar.gz -rm -rf redis-5.0.14.tar.gz - -cd /usr/local/redis-5.0.14 -yum install make gcc -y -make MALLOC=libc -make PREFIX=/usr/local/redis install -cp /usr/local/redis-5.0.14/redis.conf /usr/local/redis/bin -rm -rf /usr/local/redis-5.0.14/ - -vi /usr/local/redis/bin/redis.conf -69 行 bind 127.0.0.1 改成0.0.0.0 -88行 protected-mode yes 改为no -设置后台启动 -136行 daemonize no 改成 yes #设置后台启动 -设置密码 -requirepass rzyc#redis - -# 启动 -cd /usr/local/redis/bin -./redis-server ./redis.conf \ No newline at end of file diff --git a/操作文档/5、安装RocketMQ.txt b/操作文档/5、安装RocketMQ.md similarity index 100% rename from 操作文档/5、安装RocketMQ.txt rename to 操作文档/5、安装RocketMQ.md diff --git a/操作文档/6、MongoDB数据库下载与还原.txt b/操作文档/6、MongoDB数据库下载与还原.md similarity index 57% rename from 操作文档/6、MongoDB数据库下载与还原.txt rename to 操作文档/6、MongoDB数据库下载与还原.md index de2f193..1f87aa2 100644 --- a/操作文档/6、MongoDB数据库下载与还原.txt +++ b/操作文档/6、MongoDB数据库下载与还原.md @@ -1,70 +1,112 @@ -Mongodb备份: -当前备份文件类型为物理备份,本地恢复方法请参见ApsaraDB for MongoDB物理备份恢复方案。 +## Mongodb备份 -还原办法: -https://blog.csdn.net/w13511069150/article/details/133687350 +> 还原办法: +> https://blog.csdn.net/w13511069150/article/details/133687350 -#下载 +#### 下载 + +``` percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17-minimal.tar.gz +``` + + -# 安装 +#### 安装 + +``` cd /usr/local gunzip percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17-minimal.tar.gz tar -xvf percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17-minimal.tar mv percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17-minimal /usr/local/xtrabackup -# 创建软连接 +``` + + + +#### 创建软连接 + +``` ln -sf /usr/local/xtrabackup/bin/* /usr/bin/ +``` + -# 下载qpress + +#### 下载qpress + +``` rz -be 选择:qpress-11-linux-x64.tar tar -xf qpress-11-linux-x64.tar cp -a qpress /usr/bin/ +``` + + -# 查看版本 +#### 查看版本 + +``` xtrabackup --version +``` + + + +#### 查看位置 -# 查看位置 +``` which xtrabackup +``` -# 解包 + + +#### 解包 + +``` cd /usr/local/mongodb/db rz -be 选择 hins15335287_data_20240730061703_qp.xb -# 解压缩 cat hins15335287_data_20240730061703_qp.xb | xbstream -x -v -# 解压缩 innobackupex --decompress --remove-original /usr/local/mongodb/db +``` + + -# 打扫垃圾 +#### 打扫垃圾 + +``` rm -rf hins15335287_data_20240730061703_qp.xb +``` + + + +#### 启动MongoDB -# 启动MongoDB +``` cd /usr/local/mongodb chmod 777 db chmod 777 log +``` -# 启动命令 -/usr/local/mongodb/bin/mongod --dbpath /usr/local/mongodb/db --bind_ip 0.0.0.0 --port 27017 --fork --journal --logpath /usr/local/mongodb/log/mongod.log --logappend --noauth --directoryperdb ------------------------------------------------------------------------ -# 常用维护命令 -https://blog.csdn.net/Waldocsdn/article/details/130155631 -#mongodb如何设置用户名和密码 -https://www.cnblogs.com/knighterrant/p/17823322.html - -# 备份数据库 -https://mp.weixin.qq.com/s?__biz=MjM5NTcxMTE2Nw==&mid=2653126118&idx=2&sn=d7c3fa8bc119856dae3d66de09067ab8&chksm=bd238c368a5405209c9b9e5409afe31a39c3774b09312164822933734639eefd0289e74e5a48&scene=27 +#### 备份数据库 +``` mongodump +``` + +https://mp.weixin.qq.com/s?__biz=MjM5NTcxMTE2Nw==&mid=2653126118&idx=2&sn=d7c3fa8bc119856dae3d66de09067ab8&chksm=bd238c368a5405209c9b9e5409afe31a39c3774b09312164822933734639eefd0289e74e5a48&scene=27 +``` [root@RockyLinux dump]# ll total 4 drwxr-xr-x. 2 root root 128 Jul 29 23:02 admin drwxr-xr-x. 2 root root 4096 Jul 29 23:04 yltcharge [root@RockyLinux dump]# pwd /usr/local/mongodb/db/dump +``` + + + + diff --git a/操作文档/7、Mysql数据库下载与还原.txt b/操作文档/7、Mysql数据库下载与还原.md similarity index 74% rename from 操作文档/7、Mysql数据库下载与还原.txt rename to 操作文档/7、Mysql数据库下载与还原.md index ceeb2ed..c12db83 100644 --- a/操作文档/7、Mysql数据库下载与还原.txt +++ b/操作文档/7、Mysql数据库下载与还原.md @@ -1,4 +1,5 @@ -云数据库 RDS +## 云数据库 RDS + 4.07GB 5.7 hins25487844_data_20240730052418_qp.xb @@ -10,55 +11,91 @@ cd /usr/local 因为备份文件太大,无法使用rz -be,所以选择sftp上传 hins25487844_data_20240730052418_qp.xb +#### 解包 -## 解包 +``` mkdir /var/mysql_bkdata/ -p cat hins25487844_data_20240730052418_qp.xb | xbstream -x -v -C /var/mysql_bkdata/ - -## 解压 innobackupex --decompress --remove-original /var/mysql_bkdata/ +``` -# 恢复前准备 +#### 恢复前准备 +``` innobackupex --defaults-file=/var/mysql_bkdata/backup-my.cnf --apply-log /var/mysql_bkdata/ +``` -# 编辑数据库配置文件 +#### 编辑数据库配置文件 + +``` mkdir /var/mysql_newdata -p vi /etc/my.cnf # 修改 + datadir = /var/mysql_newdata +``` -############重要######################## -# 参数innodb_undo_tablespaces的取值需要与/var/mysql_bkdata/backup-my.cnf中的取值相同,您可以使用下面的命令来查询。 + + +**参数innodb_undo_tablespaces的取值需要与/var/mysql_bkdata/backup-my.cnf中的取值相同,您可以使用下面的命令来查询。** + +``` cat /var/mysql_bkdata/backup-my.cnf | grep innodb_undo_tablespaces +``` + -# 添加 -# 这个值不是乱写的,是根据上面的查询命令获取到的 + +#### 添加 +>这个值不是乱写的,是根据上面的查询命令获取到的 + +``` [mysqld] innodb_undo_tablespaces=0 innodb_undo_directory= /var/mysql_newdata +``` + + -# 恢复数据 +#### 恢复数据 + +``` innobackupex --defaults-file=/etc/my.cnf --copy-back /var/mysql_bkdata/ +``` -### 修改 +#### 修改 +``` vi /etc/my.cnf - -# 增加 +``` + +#### 增加 + +``` [mysqld] lower_case_table_names=1 +``` -# 授权 +#### 授权 +``` chown -R mysql:mysql /var/mysql_newdata +``` + -# 启动 + +#### 启动 + +``` mysqld --defaults-file=/etc/my.cnf --user=mysql --datadir=/var/mysql_newdata & +``` + + ------------------------------------------------------------------------------------------------------------ -# 重置密码 +#### 重置密码 + +``` /etc/init.d/mysqld stop mysqld_safe --user=mysql --skip-grant-tables --skip-networking & @@ -74,10 +111,17 @@ exit /etc/init.d/mysqld restart mysql -uroot -pDsideaL147258369 +``` + + + +> Mysql5.7修改用户密码,报错“Unknown trigger has an error in its body: ‘Unknown system variable ‘maintain_user” -# Mysql5.7修改用户密码,报错“Unknown trigger has an error in its body: ‘Unknown system variable ‘maintain_user” -https://www.cnblogs.com/perfectCats/p/17979389 +> https://www.cnblogs.com/perfectCats/p/17979389 + + +``` mysql> select trigger_schema,trigger_name from information_schema.triggers; +----------------+----------------------------+ | trigger_schema | trigger_name | @@ -94,16 +138,25 @@ Query OK, 0 rows affected (0.02 sec) [root@RockyLinux local]# mv /var/mysql_newdata/mysql/user.TRG /var/mysql_newdata/mysql/user.TRG.back [root@RockyLinux local]# mv /var/mysql_newdata/mysql/proxies_priv.TRG /var/mysql_newdata/mysql/proxies_priv.TRG.back +``` + + -# MySQL SQL报错-ERROR 1105 (HY000): Unknown error-存储过程/事件 -https://www.modb.pro/db/518258 + +>MySQL SQL报错-ERROR 1105 (HY000): Unknown error-存储过程/事件 + +> https://www.modb.pro/db/518258 + +``` # Mysql ERROR 1067: Invalid default value for 字段 + https://blog.csdn.net/qq_26245325/article/details/78916363 use mysql; ALTER TABLE `mysql`.`proc` ENGINE = MyISAM; +ALTER TABLE `mysql`.`event` ENGINE = MyISAM; +ALTER TABLE `mysql`.`func` ENGINE = MyISAM; +``` -alter table `mysql`.`event` ENGINE = MyISAM; -alter table `mysql`.`func` ENGINE = MyISAM; \ No newline at end of file diff --git a/操作文档/mongodb.conf b/操作文档/mongodb.conf deleted file mode 100644 index e3e17d0..0000000 --- a/操作文档/mongodb.conf +++ /dev/null @@ -1,31 +0,0 @@ -# 数据库目录 -dbpath = /usr/local/mongodb/db - -# 绑定IP -bind_ip = 0.0.0.0 - -# 端口 -port = 27017 - -# 日志文件 -logpath = /usr/local/mongodb/log/mongod.log - -# 日志追加方式 -logappend = true - -# write操作首先写入“日记”,是一个数据安全的设置 -journal = true - -# 后台运行 -fork = true - -# 是否以安全认证方式运行,默认是不认证的非安全方式 -noauth = true -# auth = true - -# 是不是每个数据库一个目录 -directoryperdb = true - -# 最大连接数 -maxConns = 10000 - diff --git a/操作文档/服务器环境配置操作文档.md b/操作文档/服务器环境配置操作文档.md deleted file mode 100644 index 27bfcba..0000000 --- a/操作文档/服务器环境配置操作文档.md +++ /dev/null @@ -1,135 +0,0 @@ -## 服务器环境配置操作文档 - - - -### 一、需要下载的软件列表 - -``` -以下文件都已下载完毕,保存在10.10.21.21的h盘共享中,需要: -win+r -输入 \\10.10.21.21 -Administrator -dsideal -``` - -#### $1、Mysql$ - -```xml -Mysql - url: jdbc:mysql://139.224.72.142:3307/yltcharge?useUnicode=true&useSSL=false&characterEncoding=UTF-8 - username: ycharge - password: ycharge - -# 版本号 -select @@version; 5.7.42 - -# 我下载的Mysql 5.7.42 -https://downloads.mysql.com/archives/community/ -https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.42-el7-x86_64.tar.gz -``` - -#### $2、Mongodb$ - -```xml -Mongodb - host: 139.224.72.142 - port: 27017 - database: ycharge - username: ycharge - password: ycharge - -db.version() 4.2.24 -https://www.mongodb.com/try/download/community-edition/releases/archive -https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel80-4.2.24.tgz - -#Windows版本下载 -https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.24.zip -``` - -#### $3、Redis$ - -```xml -Redis - redis_version:5.0.14 - host: 139.224.72.142 - port: 6380 - password: rzyc#redis - -https://download.redis.io/releases/redis-5.0.14.tar.gz -``` - - - -#### $4、RocketMQ$​ - -``` -https://rocketmq.apache.org/zh/docs/4.x/quickstart/01quickstart -rocketmq-all-4.9.4-bin-release.zip -rocketmq-all-4.9.4-source-release.zip -``` - - - -#### $5、JDK1.8 $ - -``` -https://www.oracle.com/java/technologies/downloads/?er=221886#java8-windows -oracle的登录名: -10402852@qq.com -密码:DsideaL4r5t6y7u!@# - -https://download.oracle.com/otn/java/jdk/8u421-b09/d8aa705069af427f9b83e66b34f5e380/jdk-8u421-windows-x64.exe?AuthParam=1721962299_c01bf4ce53f33b8cb0963dee166167cb - -https://download.oracle.com/otn/java/jdk/8u421-b09/d8aa705069af427f9b83e66b34f5e380/jdk-8u421-linux-x64.tar.gz -``` - -#### $6、Maven使用$ - -``` -在完成编译后,黄海将自己用的Maven完整打包。 - -``` - - - -#### $7、Rocky\ Linux\ 9$​ - -``` -https://rockylinux.org/zh-CN/download -https://download.rockylinux.org/pub/rocky/9/isos/x86_64/Rocky-9.4-x86_64-dvd.iso -``` - -### 二、安装操作系统$Rocky$ $Linux$ $9$ - -**IP和端口** -10.10.14.210 -22 - -**用户名与密码** - -root -DsideaL4r5t6y7u - -**注意以下几点** - -(1) RockyLinux在安装界面时,可以选择GUI界面,还是Mini安装无GUI界面,需要动手选择好! -(2) 在安装界面上输入密码时,有允许Rocky Linux 9 root用户通过ssh登录的选项,注意选择! -(3) 分区时,先Auto,然后删除掉 /和 /home,然后再进行一遍所有剩余空间到 / 的操作。 - -```shell -# 常用命令 - -# 临时关闭selinux -setenforce 0 - -# 永久关闭selinux -vi /etc/sysconfig/selinux -SELINUX=disabled - -# 临时关闭防火墙: -systemctl stop firewalld - -# 永久关闭防火墙: -systemctl disable firewalld -``` -