亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: (已解決)系統(tǒng)沒有開啟yum-update,然而centos啟動(dòng)時(shí)會(huì)自動(dòng)yum更新 [打印本頁]

作者: du_liang    時(shí)間: 2013-08-26 14:48
標(biāo)題: (已解決)系統(tǒng)沒有開啟yum-update,然而centos啟動(dòng)時(shí)會(huì)自動(dòng)yum更新
本帖最后由 du_liang 于 2013-08-27 15:02 編輯

ENV:CentOS6.4_x86

系統(tǒng)服務(wù)狀態(tài):

沒有自動(dòng)更rpm包的服務(wù)

下面是啟動(dòng)狀態(tài):


系統(tǒng)我沒讓它啟動(dòng)時(shí)更新呀?

附:安裝過epel源
作者: chenyx    時(shí)間: 2013-08-26 15:03
你看看/etc/cron*文件里面是不是有yum的指令
作者: du_liang    時(shí)間: 2013-08-26 15:21
回復(fù) 2# chenyx

好像木有吧

   # ll /etc/|grep cro
-rw-r--r--.  1 root root    541 Jul 19  2011 anacrontab
drwxr-xr-x.  2 root root   4096 Mar 15 13:29 cron.d
drwxr-xr-x.  2 root root   4096 Sep 27  2011 cron.daily
-rw-r--r--.  1 root root      0 Jul 19  2011 cron.deny
drwxr-xr-x.  2 root root   4096 Sep 27  2011 cron.hourly
drwxr-xr-x.  2 root root   4096 Sep 27  2011 cron.monthly
-rw-r--r--.  1 root root    457 Sep 27  2011 crontab
drwxr-xr-x.  2 root root   4096 Sep 27  2011 cron.weekly
[root@localhost ~]# ll /etc/cron.daily/
total 4
-rwxr-xr-x. 1 root root 196 Aug 16  2012 logrotate
[root@localhost ~]# cat /etc/cron.daily/logrotate
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
[root@localhost ~]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

[root@localhost ~]#


作者: chenyx    時(shí)間: 2013-08-26 15:25
你試試先用chkconfig將cron服務(wù)停止,重啟,看看還有沒有了
作者: du_liang    時(shí)間: 2013-08-26 15:56
回復(fù) 4# chenyx

好的:
# chkconfig --list|grep crond
crond           0ff   1ff   2ff   3ff   4ff   5ff   6ff
[root@localhost ~]# reboot


還是版本檢測(cè)



   
作者: chenyx    時(shí)間: 2013-08-26 16:01
你還是將crond起來吧.
你的這個(gè)挺奇怪的,應(yīng)該不是crond的問題.你看看rc.local里面有沒有命令啥的?
作者: du_liang    時(shí)間: 2013-08-26 16:08
回復(fù) 6# chenyx


   原生態(tài)
# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
[root@localhost ~]#
作者: chenyx    時(shí)間: 2013-08-26 16:10
那就不清楚了.
你出問題之前做過什么操作?
作者: du_liang    時(shí)間: 2013-08-26 16:49
回復(fù) 8# chenyx

安裝了epel yum源


   
作者: chenyx    時(shí)間: 2013-08-26 17:07
那個(gè)我以前安裝過,沒有見過你的這個(gè)問題啊
作者: zongg    時(shí)間: 2013-08-26 17:43
你把yum-update 那個(gè)服務(wù)關(guān)掉就行啊。
作者: du_liang    時(shí)間: 2013-08-26 22:15
回復(fù) 11# zongg

yum-update 壓根就沒開過,標(biāo)題上已經(jīng)寫了哦,而且上圖了
   
作者: du_liang    時(shí)間: 2013-08-26 22:16
回復(fù) 10# chenyx

謝謝 了,真是怪了


   
作者: zongg    時(shí)間: 2013-08-27 09:01
回復(fù) 12# du_liang


    ps -ef | grep yum 看看是不是有這個(gè)進(jìn)程?
作者: du_liang    時(shí)間: 2013-08-27 13:36
回復(fù) 14# zongg




   
作者: zongg    時(shí)間: 2013-08-27 13:44
回復(fù) 15# du_liang


    看樣子是在crontal 里有這個(gè)任務(wù)。得找找是哪里。
作者: du_liang    時(shí)間: 2013-08-27 13:58
回復(fù) 16# zongg


   crond 服務(wù)我 chkconfig off 過,還是那樣呀
作者: du_liang    時(shí)間: 2013-08-27 13:59
回復(fù) 16# zongg


   crond 服務(wù)我 chkconfig off 過,還是那樣呀
作者: zongg    時(shí)間: 2013-08-27 14:01
回復(fù) 18# du_liang
  1. [root@pic-nginx-01 ~]# cat /etc/crontab
  2. SHELL=/bin/bash
  3. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  4. MAILTO=root
  5. HOME=/

  6. # run-parts
  7. 01 * * * * root run-parts /etc/cron.hourly
  8. 02 4 * * * root run-parts /etc/cron.daily
  9. 22 4 * * 0 root run-parts /etc/cron.weekly
  10. 42 4 1 * * root run-parts /etc/cron.monthly
復(fù)制代碼
你看看你的這些內(nèi)容里有沒有yum 相關(guān)的內(nèi)容。
作者: du_liang    時(shí)間: 2013-08-27 14:04
本帖最后由 du_liang 于 2013-08-27 14:06 編輯

回復(fù) 19# zongg
  1. [root@localhost ~]# cat /etc/crontab
  2. SHELL=/bin/bash
  3. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  4. MAILTO=root
  5. HOME=/

  6. # For details see man 4 crontabs

  7. # Example of job definition:
  8. # .---------------- minute (0 - 59)
  9. # |  .------------- hour (0 - 23)
  10. # |  |  .---------- day of month (1 - 31)
  11. # |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
  12. # |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
  13. # |  |  |  |  |
  14. # *  *  *  *  * user-name command to be executed

  15. [root@localhost ~]#


復(fù)制代碼
# chkconfig --list crond
crond           0ff   1ff   2ff   3ff   4ff   5ff   6ff



作者: chenyx    時(shí)間: 2013-08-27 14:04
應(yīng)該不是cron的問題.
作者: chenyx    時(shí)間: 2013-08-27 14:06
本帖最后由 chenyx 于 2013-08-27 14:06 編輯

樓主你的啟動(dòng)級(jí)別默認(rèn)就是3吧.
你看下 /etc/rc.d/rc3.d/下面徹底cron連接S后面的數(shù)字是幾,然后看看S后面比那個(gè)數(shù)字大的腳本里面有沒有yum/rpm命令
作者: zongg    時(shí)間: 2013-08-27 14:08
回復(fù) 20# du_liang


    那你把/etc/yum.repos.d/ 目錄下的內(nèi)容都bak 了。應(yīng)該就可以了,但是這不是根本原因。
作者: du_liang    時(shí)間: 2013-08-27 14:10
本帖最后由 du_liang 于 2013-08-27 14:11 編輯

回復(fù) 22# chenyx
# ll /etc/rc.d/rc3.d/
total 0
lrwxrwxrwx. 1 root root 19 Mar 15 13:28 K10saslauthd -> ../init.d/saslauthd
lrwxrwxrwx. 1 root root 22 Aug 15 13:09 K15htcacheclean -> ../init.d/htcacheclean
lrwxrwxrwx. 1 root root 20 Mar 15 13:28 K50netconsole -> ../init.d/netconsole
lrwxrwxrwx. 1 root root 15 Aug 26 15:34 K60crond -> ../init.d/crond
lrwxrwxrwx. 1 root root 20 Mar 15 13:29 K87multipathd -> ../init.d/multipathd
lrwxrwxrwx. 1 root root 21 Mar 15 13:28 K87restorecond -> ../init.d/restorecond
lrwxrwxrwx. 1 root root 15 Mar 15 13:28 K89rdisc -> ../init.d/rdisc
lrwxrwxrwx. 1 root root 22 Mar 15 13:29 S02lvm2-monitor -> ../init.d/lvm2-monitor
lrwxrwxrwx. 1 root root 16 Mar 15 13:29 S07iscsid -> ../init.d/iscsid
lrwxrwxrwx. 1 root root 19 Mar 15 13:28 S08ip6tables -> ../init.d/ip6tables
lrwxrwxrwx. 1 root root 18 Mar 15 13:28 S08iptables -> ../init.d/iptables
lrwxrwxrwx. 1 root root 17 Mar 15 13:28 S10network -> ../init.d/network
lrwxrwxrwx. 1 root root 16 Mar 15 13:29 S11auditd -> ../init.d/auditd
lrwxrwxrwx. 1 root root 17 Mar 15 13:28 S12rsyslog -> ../init.d/rsyslog
lrwxrwxrwx. 1 root root 15 Aug 27 12:21 S13iscsi -> ../init.d/iscsi
lrwxrwxrwx. 1 root root 19 Mar 15 13:29 S15mdmonitor -> ../init.d/mdmonitor
lrwxrwxrwx. 1 root root 26 Mar 15 13:29 S25blk-availability -> ../init.d/blk-availability
lrwxrwxrwx. 1 root root 15 Mar 15 13:28 S25netfs -> ../init.d/netfs
lrwxrwxrwx. 1 root root 19 Mar 15 13:28 S26udev-post -> ../init.d/udev-post
lrwxrwxrwx. 1 root root 14 Mar 15 13:29 S55sshd -> ../init.d/sshd
lrwxrwxrwx. 1 root root 16 Aug 27 12:21 S64mysqld -> ../init.d/mysqld
lrwxrwxrwx. 1 root root 17 Mar 15 13:28 S80postfix -> ../init.d/postfix
lrwxrwxrwx. 1 root root 13 Aug  4 14:39 S85gpm -> ../init.d/gpm
lrwxrwxrwx. 1 root root 15 Aug 27 12:21 S85httpd -> ../init.d/httpd
lrwxrwxrwx. 1 root root 11 Mar 15 13:28 S99local -> ../rc.local

S后面比那個(gè)數(shù)字大的腳本?,請(qǐng)明示謝謝了

   
作者: chenyx    時(shí)間: 2013-08-27 14:14
你這個(gè)列表里面沒有cron的服務(wù)?
比如你的那個(gè)httpd,S85httpd,我要的就是85這個(gè)數(shù)字
作者: du_liang    時(shí)間: 2013-08-27 14:17
本帖最后由 du_liang 于 2013-08-27 14:17 編輯

回復(fù) 25# chenyx

crond關(guān)掉啦,我找到了,可能是

# cat /etc/rc.d/rc3.d/S99local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
yum -y install httpd httpd-devel mysql


# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
里面沒有YUM, 想請(qǐng)教下S99local -> ../rc.local這2個(gè)文件是嘛關(guān)系,內(nèi)容不一樣

   
作者: du_liang    時(shí)間: 2013-08-27 14:18
回復(fù) 23# zongg

謝謝兄弟,快找到了


   
作者: chenyx    時(shí)間: 2013-08-27 14:19
不應(yīng)該不一樣啊,正常應(yīng)該是鏈接,內(nèi)容應(yīng)該是一樣的
作者: du_liang    時(shí)間: 2013-08-27 14:23
回復(fù) 28# chenyx


    我這不一樣的,如下:
# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
[root@localhost ~]#
作者: chenyx    時(shí)間: 2013-08-27 14:25
那就奇怪了.你將那行刪除了就可以了.
作者: du_liang    時(shí)間: 2013-08-27 14:30
回復(fù) 30# chenyx

是的,有點(diǎn)怪的,謝謝2位幫忙。我再查查原因吧,為什么不一樣。


   
作者: chenyx    時(shí)間: 2013-08-27 14:35
正常的情況下,/etc/rc.local-> rc.d/rc.local,和你的那個(gè)S99local指向的文件應(yīng)該是一樣的.
你看下/etc/rc.local是不是鏈接

作者: zongg    時(shí)間: 2013-08-27 14:40
回復(fù) 27# du_liang


    就是這里
yum -y install httpd httpd-devel mysql
作者: du_liang    時(shí)間: 2013-08-27 14:45
回復(fù) 32# chenyx

ENV:CentOS6.4_x64

列一下:

# ll /etc/rc.local
-rwxr-xr-x. 1 root root 220 Aug 27 12:21 /etc/rc.local
[root@localhost rc3.d]# ll /etc/rc.d/rc3.d/S99local
lrwxrwxrwx. 1 root root 11 Mar 15 13:28 /etc/rc.d/rc3.d/S99local -> ../rc.local
[root@localhost rc3.d]# ll /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 470 Aug 27 14:15 /etc/rc.d/rc.local
[root@localhost rc3.d]#



   
作者: chenyx    時(shí)間: 2013-08-27 14:46
我的centos6.4上是鏈接,你的是不是有人修改過?
作者: chenyx    時(shí)間: 2013-08-27 14:48
或者,你將/etc/rc.local刪除,自己做一個(gè)link.
作者: du_liang    時(shí)間: 2013-08-27 14:51
回復(fù) 36# chenyx

我看下版主的結(jié)果:

ll /etc/rc.local
ll /etc/rc.d/rc.local
ll /etc/rc.d/rc3.d/S99local


show me 一下


   
作者: chenyx    時(shí)間: 2013-08-27 14:52
$ ll /etc/rc.local;ll /etc/rc.d/rc.local;ll /etc/rc.d/rc3.d/S99local
lrwxrwxrwx 1 root root 13 Apr 27 13:50 /etc/rc.local -> rc.d/rc.local
-rwxr-xr-x 1 root root 220 Mar 18 22:58 /etc/rc.d/rc.local
lrwxrwxrwx 1 root root 11 Apr 27 13:50 /etc/rc.d/rc3.d/S99local -> ../rc.local

CentOS release 6.4 (Final)
作者: du_liang    時(shí)間: 2013-08-27 15:02
回復(fù) 38# chenyx


3Q,2位




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2