在最新的openeuler 系统中我重启后ssh明明是自启。但是无法进行连接。并且我登录系统明明刚才登录系统的密码。重启后死活无法登录。我尝试重启几次后密码又可以正常登录。我使用的是vm虚拟机运行的。
具体什么版本?最好带点截图、日志什么的。
需要先确认宿主机与虚拟机的连通性,请提供详细的错误信息,以便更好的定位问题。
openEuler-22.03-LTS-SP3-x86_64 这个版本 我安装zabbix 后 死活登录不上系统
zabbix 安装
sed -e 's|^metalink=|#metalink=|g' -e 's|^baseurl=http://repo.openeuler.org/|baseurl=https://mirrors.aliyun.com/openeuler/|g' -e 's|^gpgkey=http://repo.openeuler.org/|gpgkey=https://mirrors.aliyun.com/openeuler/|g' -i.bak /etc/yum.repos.d/openEuler.repo
sudo dnf update -y
dnf -y install vim
dnf -y install net-tools
dnf -y install tar
vim /etc/yum.repos.d/cs9.repo
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os
gpgcheck=0
[AppStream]
name=appstream
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/x86_64/os
gpgcheck=0
dnf clean all
sudo dnf update -y
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-6.0-4.el9.noarch.rpm
dnf -y install glibc-all-langpacks
localectl set-locale LANG="zh_CN.UTF-8"
localectl status
dnf -y remove openEuler-logos
dnf -y install httpd mariadb-server php-fpm php-mysqlnd //安装LAMP组件
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
systemctl enable httpd mariadb php-fpm --now
systemctl disable firewalld --now
vim /etc/selinux/config
SELINUX=disable
setenforce 0
mysql -uroot -proot
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; //建zabbix库
mysql> create user zabbix@localhost identified by '123456xxx'; //建用户zabbix@localhost,密码设为123456xxx
mysql> grant all privileges on zabbix.* to zabbix@localhost; //为用户授权
mysql> set global log_bin_trust_function_creators = 1; //取消对存储函数的限制
mysql> quit; //断开连接
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p'123456xxx' zabbix
vim /etc/zabbix/zabbix_server.conf
systemctl enable zabbix-agent --now
systemctl enable zabbix-server --now
yum -y install wqy-zenhei-fonts