1+
进入Fedora LiveCD后sshd服务默认是没有开启来的,ssh需要手动开启来,开启之后需要给root添加一个密码,不然ssh登录不上的
[root@localhost ~]# systemctl enable sshd.service
ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'
[root@localhost ~]# systemctl start sshd.service
当然最好还是将 iptables 给关掉:
[root@localhost ~]# systemctl stop iptables....
fedora, linux阅读全文
0+
在编译安装 mcrypt 出现了错误 ,一下是错误信息
[root@localhost mcrypt-2.6.8]# make
make all-recursive
make[1]: Entering directory `/root/tools/lamp/mcrypt-2.6.8'
Making all in doc
make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/tools/lamp/mcrypt-2.6.8/doc'
Making all in src
make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/src'
gcc -DHAVE_CONFI...
linux阅读全文
1+
CentOS默认是不能挂载NTFS格式的分区的,不过现在的移动硬盘,U盘基本上是格式化成NTFS格式,如果要挂载那么就要使用 ntfs-3g 了
使用fdisk -l 查看 系统中的分区
[root@centos6 ~]# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd343a3a6
Device Boot...
centos, linux, ntfs阅读全文
0+
Centos 5.4 Xorg 启动不了
今天我用图形界面安装了CentOS 5.4, 可是启动的时候却进不了X. 用FC12 LiveCD测试, 可以进入图形界面. 不知道哪里出问题了. xorg.conf 不能自动配置.
主板: Intel 965G 集成显卡.
麻烦大家帮忙看看. 谢谢!
下面是系统信息和Log:
# cat /etc/X11/xorg.conf
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
&...
centos, linux阅读全文
0+
KKovacs 收集了 24 个 Linux/Unix 平台上的工具,既有熟悉的,也有鲜为人知的。这些运行于终端的工具都很酷,很有用。
dstat & sar
iostat、vmstat、ifstat 等。
htop & iotop
进程、内存、以及 io 监视。
slurm
可视化网络流量。
ttyrec & ipbt
录制并播放终端会话。
vim (&ctags)
程序员的编辑器。
rsync
通过 SSH 保持文件系统同步。
screen, dtach, tmux, byobu
保持你的终端会话。
mtr
traceroute 2.0。
multitail
在分隔的窗口中查看你的日志。
socat & netpipes
socket 输入...
linux, Shell阅读全文
2+
3+
服务器上/tmp下面生成了太多的缓存文件,想把它给删掉,不过出现了Argument list too long 的问题,现在贴出来,以供备忘.
1.文件太多,本想直接rm,出现 -bash: /bin/rm: Argument list too long
rm /tmp/also-english.cache* -f
-bash: /bin/rm: Argument list too long
2.这样不行,那就看看有多少个文件吧,不过有出现了 -bash: /bin/ls: Argument list too long
ls /tmp/also-english.cache* |wc -l
-bash: /bin/ls: Argument list too long
0 &nb...
linux阅读全文
0+
0+
今天DNS服务器的磁盘报警,感觉很奇怪,所以上去检查了以下,发现/var/spool/clientmqueue 目录下有十万多个文件
[root@host181 spool]# ls clientmqueue/ |wc -l
164798
于是上网查找资料,照着 http://tolywang.itpub.net/post/48/390007 的方法处理. 将crontab中的脚本 添加 > /dev/null 2>&1
并将/var/spool/clientmqueue/ 目录下的文件清除.
问题现象:
linux操作系统中的/var/spool/clientmqueue/目录下存在大量文件。
原因...
linux阅读全文