强迫自己写一点东西来拯救我懒惰的神经!

cry网上的博客五花八门、眼花缭乱,QQ博客、新浪博客、百度博客。。。

今天我的博客开通了!希望它能够锻炼自己的思维,锻炼自己的表达能力,让自己能够更好的与人沟通。更希望它能够记录下我的生活、我的经历、我的梦想!

当回过头来查看博客中的点滴时,我想应该别有一番味道o(∩_∩)o...

启动ssh是报以下错误。
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.   [FAILED]

这个是权限的问题,可采取以下两步解决
chown   -R   root.root    /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart


就可以解决上述的问题
1.服务器本身硬件配置原因
当服务器运行的程序过多或是某个程序占用资源被过多或是硬件配置较低时,会出现服务器访问缓慢。查看硬件资源使用情况(同时按Ctrl+Shift+Esc),如图所示
点击在新窗口中浏览此图片

当CPU使用率过高,会出现访问访问缓慢。
当内存使用情况大于或等于实际的物理内存时也会出现访问服务器缓慢。

2.本地网络原因
每个用户的网络接入方式都不一样,不一样的接入方式和带宽付费标准也决定了本地的网路访问速度。例如,找网络接入商拉一根1Mb的ADSL,那么理论的最大下载速度在125KB/s,那实际的下载速度在110-120KB/s之间。这个速度也决定你访问网站的速度,多人同时看视频、同时下载、BT等都会导致本地网络访问外网缓慢。

那如何确定本地网络是否稳定呢?通过ping命令来检测本地网络。如图所示。
点击在新窗口中浏览此图片

开始》》运行(输入“cmd”,回车)》》输入“ping www.baidu.com”来看延时,图片中的time越小、时间抖动越小说明网络越稳定,如果延时很大、时间抖动厉害,就说明是本地网络问题,访问外网速度肯定变慢,就需要查看是否是局域网中有大流量下载占用了带宽。

3.机房原因
机房原因主要有:机房受到外部攻击、机房网络问题、机房网络设备等都会导致网络访问缓慢或是网络完全中断。
再一种情况就是如果开通的带宽是5M,而服务器的流量一直持续在5M,那也会导致本地访问机房服务器缓慢。
安装Ubuntu和windows系统后修改系统启动顺序
$ sudo vim /boot/grub/menu.lst


menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0      修改这里即可

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
给自己打工,再苦也是值得滴!
每天早上7点起床,晚上10点回家,每周休一天。坚持一个月了,不容易哦!

好累好累!再苦也是为了自己!  努力中。。。。
分页: 1/9 第一页 1 2 3 4 5 6 7 8 9 下页 最后页 [ 显示模式: 摘要 | 列表 ]