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

Chinaunix

標題: sysctl 的問題 [打印本頁]

作者: tenya    時間: 2015-12-07 09:26
標題: sysctl 的問題
本帖最后由 tenya 于 2015-12-07 10:30 編輯

我很奇怪,本來,我一開始執(zhí)行sysctl -a看到很多信息的。后來記得我執(zhí)行后 sysctl -w kernel.core_pattern=core.%p.%t 后,再用sysctl -a 查詢一下,發(fā)現(xiàn)什么也看不到,變空了。請問哪位大哥知道這是怎么回事。
重啟后也不行。
作者: tomshenhao    時間: 2015-12-07 11:39
sysctl -p: Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.
or check the file /etc/sysctl.conf
作者: tenya    時間: 2015-12-07 13:59
本帖最后由 tenya 于 2015-12-07 14:00 編輯

回復(fù) 2# tomshenhao

你看一下:

$ sysctl -p
[root] /root
$
$ cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl( and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
#net.bridge.bridge-nf-call-ip6tables = 0
#net.bridge.bridge-nf-call-iptables = 0
#net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

kernel.sem=550 320000 350 4096

#-----------------------------------------
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_time = 300




   
作者: tenya    時間: 2015-12-07 16:54
自己頂一下,不然就沉了。
作者: tomshenhao    時間: 2015-12-08 04:07
那你現(xiàn)在執(zhí)行sysctl -a是什麼結(jié)果呢?
作者: tenya    時間: 2015-12-23 10:50
回復(fù) 5# tomshenhao
沒有什么東西,也是空的,你看:

[root] /root
$ sysctl -a
[root] /root

   
作者: yjh777    時間: 2015-12-23 23:07
奇怪,什么系統(tǒng)?

執(zhí)行下面的命令看看輸出:
which sysctl
ls -l `which sysctl`
strace sysctl -a
作者: tenya    時間: 2015-12-29 12:40
本帖最后由 tenya 于 2015-12-29 12:56 編輯

回復(fù) 7# yjh777

$ cat /etc/issue
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel \r on an \m

$ which sysctl
/sbin/sysctl
[root] /root

$ ls -l `which sysctl`
-rwxr-xr-x 1 root root 0 12月  4 15:40 /sbin/sysctl
[root] /root

$ strace sysctl -a
execve("/sbin/sysctl", ["sysctl", "-a"], [/* 33 vars */]) = -1 ENOEXEC (Exec format error)
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
exit_group(1)                           = ?
+++ exited with 1 +++
[root] /root

-------------------------------------------------------------
奇怪了,我的sysctl為何變成0大小了。

   
作者: yjh777    時間: 2015-12-29 13:04
被人為破壞了,
    或者自己不小心執(zhí)行什么操作時, 給清零了,,,
作者: tenya    時間: 2016-04-05 10:32
回復(fù) 9# yjh777


是的,莫名文件被清了。




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