个人错误集

错误1

 yum install -y dhcp tftp-serversyslinux vsftpd
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 55500 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存: 27 M RSS (437 MB VSZ)
    已启动: Fri Jul 12 17:30:13 2024 - 00:09之前
    状态  :睡眠中,进程ID:55500
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存: 27 M RSS (437 MB VSZ)
    已启动: Fri Jul 12 17:30:13 2024 - 00:11之前
    状态  :睡眠中,进程ID:55500
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存: 27 M RSS (437 MB VSZ)
    已启动: Fri Jul 12 17:30:13 2024 - 00:13之前
    状态  :睡眠中,进程ID:55500
 

解决办法

sudo rm -f /var/run/yum.pid

错误2

启动xinetd 和 tftpd会抢占23端口

解决办法

先启动tftpd再启动xinetd或者改端口

错误3

[root@localhost ~]# systemctl status firewalld.service 
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since 四 2024-08-01 09:58:00 CST; 6h ago
     Docs: man:firewalld(1)
 Main PID: 29054 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─29054 /usr/bin/python -Es /usr/sbin/firewalld --nofork --...

8月 01 09:58:00 localhost.localdomain systemd[1]: Starting firewalld ...
8月 01 09:58:00 localhost.localdomain systemd[1]: Started firewalld -...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: ICMP...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: beyo...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: ICMP...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: fail...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: ICMP...
8月 01 09:58:00 localhost.localdomain firewalld[29054]: WARNING: reje...
8月 01 10:06:27 localhost.localdomain firewalld[29054]: WARNING: ALRE...
8月 01 10:06:27 localhost.localdomain firewalld[29054]: ERROR: INVALI...
Hint: Some lines were ellipsized, use -l to show in full.
 

解决办法

[root@localhost ~]# firewall-cmd --reload
success

多重启几遍

错误4

[root@localhost ~]# firewall-cmd --add-service=http --zone=public
Warning: ALREADY_ENABLED: 'http' already in 'public'
success
[root@localhost ~]# firewall-cmd --zone=public --remove-service=http --permanent
Warning: NOT_ENABLED: http
success
[root@localhost ~]# firewall-cmd --add-service=http --zone=public
Warning: ALREADY_ENABLED: 'http' already in 'public'
success
[root@localhost ~]# firewall-cmd --add-service=http --zone=public
Warning: ALREADY_ENABLED: 'http' already in 'public'
success
[root@localhost ~]# firewall-cmd --zone=public --remove-service=http --permanent
Warning: NOT_ENABLED: http
success
[root@localhost ~]# firewall-cmd --add-service=http --zone=public
Warning: ALREADY_ENABLED: 'http' already in 'public'
success
 

解决办法

firewall-cmd --zone=public --remove-service=http --permanent

firewall-cmd --reload

错误5

解决办法
vi /etc/httpd/conf/httpd.conf
ServerName 192.168.0.1
systemctl restart httpd
setenforce 0
systemctl stop firewalld
apachectl configtest


错误6

解决办法

删除并重建符号链接

rm -rf /usr/local/bin

ln -s /usr/local/mysql8/bin /usr/local/bin

错误7

解决办法

vim /etc/systemd/system/mysql.service

[Unit]
Description=MySQL Community Server
After=network.target

[Service]
User=mysql
Group=mysql
ExecStart=/usr/local/mysql/bin/mysqld --daemonize --pid-file=/usr/local/mysql/mysqld.pid
LimitNOFILE=5000

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl start mysql

错误8

[root@localhost ~]# /etc/init.d/redis_6379 restart /var/run/redis_6379.pid does not exist, process is not running Starting Redis server...

解决办法

rm /var/run/redis_6379.pid

/etc/init.d/redis_6379 start


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值