最新动态

今日:0  |  文章:1156
汇集全站版块最新文章
admin
小绿叶技术博客 Lv2 超级管理员

spawn-expect关键字交互-KVM

================简洁方法程序==============1.注释前面不能有字符 #!/usr/bin/expect  2.匹配关键字需要匹配末尾,跟着末尾输入信息#!/bin/bashyum install -y expect                # 安装交互工具包set timeout 30            &nb
 
KVM虚拟化   2015   2019-03-28
admin
小绿叶技术博客 Lv2 超级管理员

时间-模拟登录

-----------------------登录--------------------// JavaScript Documentvar mystr="JavaScript study";document.write("mystr.length="+mystr.length+"<br/>");mystr="JavaScript \stud\"y";//第一个斜杠符号是转义符,不计算document.write("mystr.length="+mystr.length+"<br/>
 
javaScript   5714   2019-03-26
admin
小绿叶技术博客 Lv2 超级管理员

openstack和mysql忘记密码重置密码-KVM

yum install -y python-openstackclient openstack-selinuxyum install -y mariadb mariadb-server python2-pythonsystemctl enable mariadbmysql_secure_installation 初始化数据库 y,n,y,ymysql -uroot -p000000登录数据库,以6个0为密码登录============忘记密码先停止再修改mysql密码==============
 
KVM虚拟化   2546   2019-03-25
admin
小绿叶技术博客 Lv2 超级管理员

sed-cat-修改-KVM

-------------sed-------------------sed -i -e '7s/^/server controller iburst/g' -e '27s/^/allow 10.32.24.0\/23/g' -e '31s/^/local stratum 10/g' /etc/chrony.conf-i -e  输入,多行匹配,同时将多个地方进行输入7s 第7行/^ 开头/server controller iburst/g 插入的信息-----------------cat-
 
KVM虚拟化   2150   2019-03-25
admin
小绿叶技术博客 Lv2 超级管理员

重定向-KVM

yum list >/dev/null将yum list的信息输出到黑洞:/dev/null    什么也没有---------------------------------------- yum search xxxx >>/dev/null 2>&11为标准。2为错误。2>&1  将1和2都输出到黑洞------------------------------------------------
 
KVM虚拟化   2528   2019-03-25
admin
小绿叶技术博客 Lv2 超级管理员

if判断-KVM

#!/bin/basha=3if [ $a -gt 3 ]thenecho "a大于3"fi----------------gt 大于then 返回echo 打印fi 循环结束eq相等 ne、neq不相等, gt大于, lt小于 gte、ge大于等于 lte、le 小于等于 not非 mod求模 is [not] div by是否能被某数整除 is [not] even是否为偶数 is [not] even by $b即($a / $b) % 2 == 0 is [not] odd是否为奇 is not
 
KVM虚拟化   2004   2019-03-25
admin
小绿叶技术博客 Lv2 超级管理员

背景颜色等-android

颜色资源在res/values/colors.xml文件中<resources>    <color name="black">#000000</color>   //黑色,调用名称为:black    <color name="white">#FFFFFF</color> //白色,调用名称为:white</resources>-----------------------
 
android   4277   2019-03-21
admin
小绿叶技术博客 Lv2 超级管理员

数组-jsp

// JavaScript Documentvar scores=new Array();document.write("<br/>scores.length:"+scores.length);//scores[0]=100;document.write("<br/>scores.length:"+scores.length);var info=new Array("zs","boy",190.5,9);//定义数组初始化document.write("<br/>inf
 
javaScript   4353   2019-03-19
admin
小绿叶技术博客 Lv2 超级管理员

function-登录验证-jsp

// JavaScript Documentfunction loop(){ var sword=""; while(sword!="000000") { sword=prompt("请输入你的密码:",sword); } alert("欢迎你!");}//loopy();function add(x,y){ return x+y; }var result=add(3,6);document.write("<br/>"+result);function addPro(){ var n=arg
 
javaScript   3301   2019-03-19
admin
小绿叶技术博客 Lv2 超级管理员

echo-写入与交互界面-linux

#!/bin/bash# date:2019-03-19#Author:GuoRia=`ifconfig |grep -w inet|awk 'NR==1{print$2}'`b=hostnameecho "$a $b" >> /etc/hosts--------------------赛选出本机IP------------ifconfig |grep -w inet|awk 'NR==1{print$2}'赛选出本机IPifconfig |grep -w inet完全匹配inet的信息|aw
/精华/置顶
KVM虚拟化   4727   2019-03-18
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息