破解CentOS 7/8密码

前提条件:
# vim /etc/selinux/config
SELINUX=disabled

第一种

grub界面--> e --> vmlinuz那行最后添加 \init=/bin/sh --> ctrl+x --> # mount -o remount,rw / 

# vim /etc/selinux/config
SELINUX=disabled

 第二种

右键 --> 电源 --> 打开电源时进入固件 
Boot --> CD-ROM Drive  shift+移到最上面 --> exit --> exit saving changes --> yes
Troubleshooting --> Rescue a CentOS system
1
sh-4.2 # chroot  /mnt/sysimage
bash-4.2 #  //进入管理员模式
passwd    //重新设置密码
打开电源时进入固件 --> Boot --> Hard Drive 修改启动状态 --> exit

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
安装 ONLYOFFICE Community Server 最新版可以按照以下步骤进行操作: 1. 添加 ONLYOFFICE 官方仓库 CentOS 7: ``` sudo wget https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm sudo rpm -i onlyoffice-repo.noarch.rpm ``` CentOS 8: ``` sudo wget https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm sudo dnf localinstall onlyoffice-repo.noarch.rpm ``` 2. 安装 ONLYOFFICE Community Server ``` sudo yum install onlyoffice-communityserver ``` 3. 配置 ONLYOFFICE Community Server 编辑 ONLYOFFICE Community Server 的配置文件: ``` sudo nano /etc/onlyoffice/communityserver/default.json ``` 根据需要修改以下参数: - `public_http_port`:ONLYOFFICE Community Server 的 HTTP 端口,默认为 80。 - `public_https_port`:ONLYOFFICE Community Server 的 HTTPS 端口,默认为 443。 - `db_password`:ONLYOFFICE Community Server 数据库用户的密码。 - `rabbitmq_password`:ONLYOFFICE Community Server RabbitMQ 用户的密码。 保存并退出配置文件。 4. 启动 ONLYOFFICE Community Server ``` sudo systemctl start onlyoffice ``` 5. 设置 ONLYOFFICE Community Server 开机自启动 ``` sudo systemctl enable onlyoffice ``` 6. 访问 ONLYOFFICE Community Server 在浏览器中输入 `http://your_server_address`,即可访问 ONLYOFFICE Community Server。 注意:如果您启用了防火墙,请确保已将端口 80 和 443 添加到防火墙规则中。 希望这个步骤能够帮助到您。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

黑黢黢的煤球

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

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

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

打赏作者

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

抵扣说明:

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

余额充值