包安装失败 ! 无法修改密码,启动报错 ubuntu 12.10 下安装 mysql-5.5.28-linux2.6-x86_64 包,最终回到终端在线安装

本文提供了一步一步的指导来帮助您在Ubuntu 12.10上安装Mysql数据库,包括从官方下载安装包到配置管理工具的全过程,并解决了一些常见的安装问题。

Ubuntu12.10终端在线安装Mysql数据库

参考 

http://my.oschina.net/ctojp/blog/89905



1. 官方下载安装包

2.解压包 

3.创建链接

ln -s **/mysql-5.5.28-linux2.6-x86_64 /usr/local/mysql

4.建立mysql组:groupadd mysql  和建立mysql用户并设置组:useradd -g mysql mysql

5.cd /usr/local/mysql

   chown -R mysql .

   chgrp -R mysql .


6. 安装 sudo scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql

期间报错Installing MySQL system tables...
/usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

执行 sudo apt-get install libaio1 安装缺少的包


Installing MySQL system tables...
OK
Filling help tables...
OK


To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:


/usr/local/mysql//bin/mysqladmin -u root password 'new-password'
/usr/local/mysql//bin/mysqladmin -u root -h [pc-name] password 'new-password'


Alternatively you can run:
/usr/local/mysql//bin/mysql_secure_installation


which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.


See the manual for more instructions.


You can start the MySQL daemon with:
cd /usr/local/mysql/ ; /usr/local/mysql//bin/mysqld_safe &


You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/mysql//mysql-test ; perl mysql-test-run.pl


Please report any problems with the /usr/local/mysql//scripts/mysqlbug script!

7.启动与测试 mysql

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &


You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/mysql/mysql-test ; perl mysql-test-run.pl

8. 安装 mysql-workbench-gpl-5.2.44-1ubu1204-amd64.deb 管理器

期间可能提示缺少包 libctemplate0_0.97-1_amd64.deb


要下载特定版本的 GitLab 社区版 RPM (如 `gitlab-ce-12.10.14-ce.0.el8.x86_64.rpm`),可以使用 `wget` 命令直接从 GitLab 的官方软件仓库下载。GitLab 提供了对不同版本和操作系统的支持,可以通过以下方式下载所需的 RPM [^4]: ```bash wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-12.10.14-ce.0.el8.x86_64.rpm/download.rpm ``` 该命令会将 RPM 下载到当前目录,并保留原始文件名。如果需要下载的版本不在默认的仓库中,可以访问 [GitLab 官方仓库页面](https://packages.gitlab.com/gitlab/gitlab-ce) 查找具体的版本链接[^2]。 ### 安装 GitLab 社区版 下载完成后,可以使用 `yum` 命令进行安装: ```bash sudo yum install -y gitlab-ce-12.10.14-ce.0.el8.x86_64.rpm ``` 在安装过程中,系统会自动处理依赖关系并完成安装安装完成后,还需要进行初始化配置: ```bash sudo gitlab-ctl reconfigure ``` 此命令会根据 `/etc/gitlab/gitlab.rb` 配置文件中的设置初始化 GitLab 环境[^2]。 ### 注意事项 1. **签名验证**:在安装 RPM 时,可能会遇到签名验证失败的问题。为避免此问题,可以在安装命令中添加 `--nogpgcheck` 参数: ```bash sudo yum install -y gitlab-ce-12.10.14-ce.0.el8.x86_64.rpm --nogpgcheck ``` 2. **依赖关系**:确保系统已安装必要的依赖项,如 `curl` 和 `policycoreutils-python-utils`,否则安装可能会失败。 3. **版本兼容性**:请确认下载的 RPM 与当前系统的 CentOS 版本兼容。如果使用的是 CentOS 8,则应下载适用于 `el8` 的版本[^1]。 ### 验证安装 安装完成后,可以通过以下命令检查 GitLab 的状态: ```bash sudo gitlab-ctl status ``` 如果 GitLab 服务正常运行,应看到类似以下的输出: ``` run: gitlab-workhorse: (pid 1234) uptime 0d 0h 1m 23s run: logrotate: (pid 5678) uptime 0d 0h 1m 23s run: nginx: (pid 9101) uptime 0d 0h 1m 23s run: postgresql: (pid 1122) uptime 0d 0h 1m 23s run: redis: (pid 3344) uptime 0d 0h 1m 23s run: sidekiq: (pid 5566) uptime 0d 0h 1m 23s run: unicorn: (pid 7788) uptime 0d 0h 1m 23s ``` ### 配置 GitLab 安装完成后,可以通过编辑 `/etc/gitlab/gitlab.rb` 文件来配置 GitLab。例如,设置外部 URL: ```ruby external_url 'http://your-gitlab-domain' ``` 保存更后,重新配置 GitLab: ```bash sudo gitlab-ctl reconfigure ``` ###
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值