环境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了,当然一定要记得保护好密码,密码在你之前自动生成的。
这玩意还是先记下的好,省得找不到。