Chinaunix首页 | 论坛 | 博客
  • 博客访问: 392266
  • 博文数量: 199
  • 博客积分: 154
  • 博客等级: 入伍新兵
  • 技术积分: 1530
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-14 08:43
文章分类

全部博文(199)

文章存档

2015年(101)

2014年(97)

2011年(1)

发布时间:2015-09-17 17:01:27

#coding=utf-8<br /># Area calculation program<br />print ("Welcome to the Area calculation program")<br />print ("*********************************")<br />print<br /># Print out the menu:<br />print ("Please select a shape:")<br />print ("1 Rectangle")<br />print ("2 Circle")<br />#Get the .........【阅读全文】

阅读(1833) | 评论(0) | 转发(0)

发布时间:2015-09-15 16:59:54

#!/usr/bin/env python<br />#encoding:UTF-8<br />&nbsp;&nbsp;<br />import urllib.parse<br />import urllib.request<br />def get():<br />&nbsp; &nbsp; url=''<br />&nbsp; &nbsp; data=urllib.request.urlopen(url).read()&nbsp;<br />&nbsp; &nbsp; z_data=data.decode('UTF-8')<br />&nbsp; &nbsp; print.........【阅读全文】

阅读(1753) | 评论(2) | 转发(0)

发布时间:2015-09-11 17:16:31

#!/bin/bash<br />&nbsp;<br />netid="128.5.0."<br />n=0<br />for i in $(seq 1 254)<br />do<br />&nbsp; &nbsp; ping -c1 -W1 -n $netid$i &amp;&gt; /dev/null<br />&nbsp; &nbsp; if [ $? == 0 ]<br />&nbsp; &nbsp; then<br />&nbsp; &nbsp; &nbsp; &nbsp; echo -e "$netid$i is UP!"<br />&nbsp; &nbsp; .........【阅读全文】

阅读(1772) | 评论(0) | 转发(0)

发布时间:2015-09-10 15:01:56

<span style="font-size:14px;color:#337FE5;">cat $access_file | awk '{print $1}' | sort |uniq -c | sort -rn | head -n 10<br style="color:#0000FF;font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;" /><span style="font-family:Verdana, Geneva, .........【阅读全文】

阅读(1640) | 评论(0) | 转发(0)

发布时间:2015-09-09 17:28:39

1.可视化资源跟踪<br />&nbsp; &nbsp; &nbsp;&nbsp;<span style="white-space:normal;">可视化资源跟踪是指在系统监控的可视化示图上,管理员可以实时选择需要监控的模块,该模块的内部信息能够在示图上动态的进行展示。具体来说,当管理员需要观察确认出现告警的模块(例如CPU、内存、I/O等)原因时,不再需要采用后台人.........【阅读全文】

阅读(1764) | 评论(1) | 转发(0)

发布时间:2015-09-08 11:57:02

<span style="font-size:14px;color:#FF9900;">awk -F: 'BEGIN{printf "%-15s%-7s%s\n%-s\n", "Username","UID","GID","=========================="} $3 &gt;= 500 &amp;&amp; $3 != 65534 {printf "%-15s%-7s%s\n", $1,$3,$4} END{printf "%s\n%s\n", "==========================","List Over"}' /etc/passwd<br /><spa.........【阅读全文】

阅读(1760) | 评论(0) | 转发(0)

发布时间:2015-09-08 11:28:08

......【阅读全文】

阅读(1864) | 评论(0) | 转发(0)

发布时间:2015-09-08 10:47:52

Xmanage连接RHEL5&nbsp;<br />&nbsp; &nbsp;配置步骤:<br />&nbsp; &nbsp; 配置文件位置:/usr/share/gdm/default.conf<br />&nbsp; &nbsp; 修改配置选项:<br />&nbsp; &nbsp; [xdmcp]段<br />&nbsp; &nbsp; 1、enable=true //257行<br />&nbsp; &nbsp; 2、Port=177//284行<br />&nbsp; &nbsp; [security]段<br /.........【阅读全文】

阅读(1587) | 评论(0) | 转发(0)

发布时间:2015-09-08 10:46:01

 1.修改/etc/sysconfig/displaymanager 
     DISPLAYMANAGER_REMOTE_ACCESS="yes"   
     DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
     DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"......【阅读全文】

阅读(1721) | 评论(0) | 转发(0)

发布时间:2015-09-06 15:56:03

1、oui-10025 &nbsp;<br />&nbsp; &nbsp; 由于以下错误, 无法启动交互式安装会话: Can't connect to X11 window server using '10.200.5.48:0.0' as the value of the DISPLAY variable.。DISPLAY 环境变量应该设置为 &lt;hostname 或 IP address&gt;:&lt;screen&gt;, 其中 &lt;screen&gt; 通常为 '0.0'。<br />&nbsp; 根.........【阅读全文】

阅读(3008) | 评论(11) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册