码迷,mamicode.com
首页 >  
搜索关键字:scripts    ( 4455个结果
虚拟机只有IPv6,没有ipv4
1、修改配置文件vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneHWADDR=00:0C:29:20:CB:81IPV6INIT=yesNM_CONTROLLED=yesONBOOT=yesTYPE=Ether...
分类:其他好文   时间:2015-05-11 10:30:40    阅读次数:133
Linux Shell实战之三 自动修改为静态IP
本脚本主要用于修改IP地址为静态!#!/bin/bash # #Target:AutoChmodIPInformation! #Date:2015-05-10 #Author:Jacken #QQ:654001593 #QQGroup:170544180 #Version:1.0 #Onlyallowdefinevariable shopt-s-onounset #DefineVariable ETHCONFIG=‘/etc/sysconfig/network-scripts..
分类:系统相关   时间:2015-05-11 06:41:40    阅读次数:360
[ Alcatraz ]管理Xcode插件
[ Alcatraz 配置 ]1、包管理器在线安装Terminal终端 $ curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/master/Scripts/install.sh | shPS: |-> 使用步骤: 安装完...
分类:其他好文   时间:2015-05-11 01:14:49    阅读次数:234
虚拟机配置网络eth1
ifconfig-acd/etc/sysconfig/network-scripts/cpifcfg-eth0/tmpmvifcfg-eth0ifcfg-eth1viifcfg-eth1ifconfigeth1up/etc/init.d/networkrestart
分类:其他好文   时间:2015-05-10 17:29:39    阅读次数:157
Centos6 ping的通,但打不开网页
在设置虚拟机网络的时候出现的问题,ping的通网站,但是打不开网页。打开/etc/resolv.conf:打开 /etc/sysconfig/network-scripts/ifcfg-eth0往里边添加两行:DNS1=8.8.8.8DNS2=8.8.4.4保存后输入 service network...
分类:Web程序   时间:2015-05-10 12:40:42    阅读次数:210
去除文件中重复行,保序perl代码。
#!/usr/bin/perl#get scripts name#print $0 . "\n";#get the parametersmy $argc = $#ARGV+1;my $src_file;my $dst_file;#print "$argc\n";if($argc == 2) { .....
分类:其他好文   时间:2015-05-09 18:53:01    阅读次数:194
linux 克隆没有eth0
1  /etc/udev/rules.d/70-persistent-net.rules文件            把NAME="eth0"的那行配置注释掉或者删掉,把NAME="eth1"的修改成NAME="eth0", 2.  vi   /etc/sysconfig/network-scripts/ifcfg-eth0           将HWADDR的值修改为/etc/ude...
分类:系统相关   时间:2015-05-09 13:28:14    阅读次数:202
bash-shell-scripts高级脚本配置IP地址
[root@kongxlshell]#catmod_ip_hostname.sh #!/bin/bash #Automodifyipandhostname #bycolinon2015-05-07 IP_CONFIG=‘/etc/sysconfig/network-scripts/ifcfg-eth0‘ HOSTNAME_CONFIG=‘/etc/sysconfig/network‘ HOSTS_CONFIG=‘/etc/hosts‘ #定义一个IP主要内容数组 a=0#定义变量..
分类:系统相关   时间:2015-05-08 18:31:39    阅读次数:263
bash-scripts 用脚本添加恶意访问IP到防火规则里
#!/bin/bash #autodropsshfailedIPaddress #bycolinkon2015-05-07 IPTAB_DIR=‘/etc/sysconfig/iptables‘ LOG_DIR=‘/var/log/secure‘ IPADDRS=`tail-n200${LOG_DIR}|grep"Failedpassword"|grep-Eo‘([0-9]{1,3}\.){3}[0-9]{1,3}‘|sort-nr|uniq-c|awk‘$1>=5{print$2}‘` echo-e..
分类:其他好文   时间:2015-05-08 01:52:56    阅读次数:153
32. PowerShell -- 批处理中执行远程的powershell脚本的方法
Copypowershell.ps1from\\fileserver\scriptsto"%systemdrive%\Tools\Scripts"localcomputer;REMpowershell.ps1filerobocopy\\filerserver\Scripts%systemdrive%\Tools\Scriptspowershell.ps1Executethepowershell.ps1fileREMExecutepowershell.ps1filepowershell-ExecutionPol..
分类:系统相关   时间:2015-05-08 00:22:52    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!