摘要: 问题现象: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 原因分析:由于密码错误等原因导致连接失败。 解决办法:修改用户名对应密码 root@hao-ubuntu:/usr/lo 阅读全文
posted @ 2012-05-02 14:07 念槐聚 阅读(410) 评论(0) 推荐(0) 编辑
摘要: # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量 资源 # free -m # 查看内存使用量和交换区使用量 # df -h # 查看各分区使用情况 # du -sh # 查看指定目录的大小 # grep MemTotal /proc/meminfo # 查 阅读全文
posted @ 2012-05-02 12:56 念槐聚 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 问题现象:sudo make /etc/local/hao 的时候出现 hao is not in the sudoers file. This incident will be reported. 错误问题原因:linux默认没有开启sudo权限。解决方法:#su 切换至root#chmod u+w /etc/sudoers#vi /etc/sudoers在 admin ALL=(ALL) ALLZ下,添加hao ALL=(ALL) ALL然后保存退出再尝试 sudo make /etc/local/hao,发现还是报错:sudo: /etc/sudoers is mode 0640, sh 阅读全文
posted @ 2012-05-02 12:51 念槐聚 阅读(426) 评论(0) 推荐(0) 编辑