我的内网服务器搭建环境

环境centos8

搭建gitlab:

https://www.cnblogs.com/stronger-xsw/p/12802069.html
其中遇到一个问题:
需改gitlab存储位置
https://www.cnblogs.com/dieyaxianju/p/7586203.html


Running handlers:
There was an error running gitlab-ctl reconfigure:

execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] (postgresql::enable line 74) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
STDOUT: The files belonging to this database system will be owned by user "gitlab-psql".
This user must also own the server process.
STDERR: initdb: invalid locale settings; check LANG and LC_* environment variables
---- End output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
Ran /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 returned 1

Running handlers complete



参考这篇文章解决:
https://blog.csdn.net/yeshennet/article/details/74930391

搭建宝塔面板

搭建宝塔面板比较简单,一行命令就行

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

搭建RabbitMQ

这个比较艰难,参考一下文章
https://www.cnblogs.com/yadongliang/p/12504187.html
修改RabbitMQ存储位置
https://blog.csdn.net/qq_33633013/article/details/105390371
ubuntu20搭建
https://blog.csdn.net/qq_37296487/article/details/108311148
设置远程登录的方法
https://www.cnblogs.com/yuanxiaoping_21cn_com/p/6548323.html

搭建mysql8.0.21

这篇教程写的总体不错,但是细节上会又点问题。
https://blog.csdn.net/u010900284/article/details/107470236

比如在在这里插入图片描述
在这一步会出现一个错误。

2020-12-19T11:48:30.645203Z 0 [System] [MY-010116] [Server] /home/data/mysql-8.0.21/bin/mysqld (mysqld 8.0.21) starting as process 63269
2020-12-19T11:48:30.658286Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2020-12-19T11:48:30.658416Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2020-12-19T11:48:30.658469Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-12-19T11:48:30.658938Z 0 [System] [MY-010910] [Server] /home/data/mysql-8.0.21/bin/mysqld: Shutdown complete (mysqld 8.0.21)  MySQL Community Server - GPL.

提示找不到data文件,可实际上是有的,这是你会发现,在mysql-8.0.21文件加下有了另外的一个data。大概长这样。

'data'$'\302\240' 

这时候你只需要把你创建的那个data文件夹删除,并把这个文件夹改名成data在执行

service mysql start

你会发现就可以了
在这里插入图片描述

然后在进行下一步在下一步还有一个坑,那就是提示你缺少文件:

mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

这时候你只要下载这个就好了:

yum install libncurses*

只下载libtinfo.so.5是不行的,你需要全部都下载。这下载你就可以运行mysql了,当然一定要记得保护好密码,密码在你之前自动生成的。
在这里插入图片描述
这玩意还是先记下的好,省得找不到。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

波雅_汉库克

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值