上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页
摘要: Linux虚拟机SSH启动时,报如下问题:/var/empty/sshd must be owned by root and not group or world-writable [FAIL]解决办法:1. virt-manager 连接打开虚拟化管理2. vnc连接目标虚拟机3.如下命令操作修改: chown -R root:root /var/empty/sshd chmod 744 /var/empty/sshd service sshd restart完成重新验证,连接正确。 阅读全文
posted @ 2013-03-18 11:47 念槐聚 阅读(647) 评论(0) 推荐(0)
摘要: 一个很笨的问题:这是一段示例代码:def buildConnectionTest(params): """Build a connection string from a dictionary of parameters. Returns string.""" return ";".join(["%s=%s" % (k, v) for k, v in params.items()])if __name__=="__main__": myParams={"server 阅读全文
posted @ 2013-01-21 22:19 念槐聚 阅读(1599) 评论(0) 推荐(0)
摘要: linux 修改 hostname 立即生效的四种方法方法一:#hostname oratest 这一步应该只能在重启前立即生效 并非长久之计方法二: 修改/etc/sysconfig/network中的hostname 方法三: 修改/etc/hosts文件方法四:用sysctl 修改kernel.hostname查看:sysctl kernel.hostname 修改:sudo sysctl kernel.hostname=R80 阅读全文
posted @ 2013-01-09 11:10 念槐聚 阅读(13299) 评论(1) 推荐(2)
摘要: ImportError: No module named thrift.Thrift问题解决:1.重装thrift:cd /root/thrift-0.8.0./configure makemake install2.重新设置环境变量配置:export PYTHONPATH=/usr/lib/python2.7/site-packages重新运行python程序,问题解决 阅读全文
posted @ 2012-12-12 12:24 念槐聚 阅读(5455) 评论(0) 推荐(0)
摘要: Ubuntu桌面系统配置1.更新系统:sudo apt-get update sudo apt-get update --fix-missing 2.安装xwindows桌面sudo apt-get install x-window-system-core sudo apt-get install gdm apt-get install ubuntu-desktop 3.重启reboot4.安装配置远程连接,并启动xrdp服务 apt-get install xrdp apt-get install tightvncserver 卸载vnc4serverdpkg -r vnc4server t 阅读全文
posted @ 2012-12-11 11:50 念槐聚 阅读(520) 评论(0) 推荐(0)
摘要: linux系统启动过程中给出错误: There are offline or missing virtual drives with preserved cache. Please check the cables and ensure that all drives are present.Pre 阅读全文
posted @ 2012-11-28 14:37 念槐聚 阅读(9261) 评论(0) 推荐(0)
摘要: 如下,要杀9005端口占用的进程: kill -9 `lsof -i:9005 | awk 'NR-1{print $2}'` 端口不同,自己替换即可。 根据端口查进程:lsof -i:9005 根据进程查端口:ps -ef | grep ${PIDname} pkill -f ${PIDname} 阅读全文
posted @ 2012-11-28 11:11 念槐聚 阅读(231) 评论(0) 推荐(0)
摘要: 局域网或者服务器使用时候,可能会有未知IP也来访问。影响我们目前的工作,这时候不知道此IP是谁的,也就只能“痛下杀手”,踢掉他。方法如下:一.踢掉某正在连接IP的方法:1、运行 "who" 查看登录用户的IP和TTY2、运行 "pkill -KILL -t $TTY" ,$TTY为上面所查到的结果。 阅读全文
posted @ 2012-11-27 18:56 念槐聚 阅读(1080) 评论(0) 推荐(0)
摘要: linux下定时关机1.添加或者编辑一个计划任务:crontab -e2.进入编辑状态,输入下述代码:----------------------------------------------------#Power off this machine everyday or weekday#hao.chuang@eisoo.comSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/bin25 22 * * 0-5 sync && shutdown -h now# 每星期日到星期五 晚10:25 关机55 22 * * 6 sync &a 阅读全文
posted @ 2012-11-16 14:10 念槐聚 阅读(1882) 评论(0) 推荐(0)
摘要: Linux 一个配置文件确实会导致图形化界面无法启动。export DISPLAY=localhost:1.0 也存在问题,后寻找此文件,贴于机器,即可用。该配置文件为:/etc/X11/xorg.conf ,内容如下:xorg.conf(5) xorg.conf(5)NAME xorg.conf and xorg.conf.d - configuration files for Xorg X server... 阅读全文
posted @ 2012-11-15 08:59 念槐聚 阅读(2636) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页