码迷,mamicode.com
首页 >  
搜索关键字:sh    ( 13189个结果
sh脚本的dos和unix
最近集群迁移,新给的客户端执行sh,报错,找到了一篇很好的文章:http://blog.chinaunix.net/uid-20621895-id-196639.html虽然很简单,但是之前都不知道这些查看命令,学习了: 在执行shell脚本时提示这样的错误主要是由于shell脚本文件是dos格式,...
分类:其他好文   时间:2014-06-25 20:31:19    阅读次数:299
Wildcard Matching
题目 Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching sh...
分类:其他好文   时间:2014-06-25 19:56:35    阅读次数:275
tomcat
1, tomcat在linux下发布简单的web应用1, 将web应用的war包拷贝到目录 apache-tomcat-opsweb/webapps 2, 切换到 apache-tomcat-opsweb/bin 目录下, 一般先使用 sh shutdown.bat 命令停止tomcat,再使用 ....
分类:其他好文   时间:2014-06-25 09:34:40    阅读次数:209
JConsole远程监控Tomcat7
一、设置服务端: 1、加入Listener到conf/server.xml 2、加入JAVA_OPTS到bin/catalina.sh JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote....
分类:其他好文   时间:2014-06-25 07:23:23    阅读次数:244
linux 开机批量启动程序
每天早上到公司第一件事打开电脑,打开我的qq,我的开发工具idea,在看看邮件,日复一日,变懒了,也变聪明了,写了下面一段脚本 文件名:mystart.sh #!bin/bash #检验我的开发工具是否已经启动,如果没有启动,启动程序,并在终端打印简单启动信息 ideaNum=`ps -ef | grep idea | awk '{print $2}' | wc -l`...
分类:系统相关   时间:2014-06-24 23:16:30    阅读次数:312
libPhenom 编译
安装 http://c-ares.haxx.se/ 安装 http://concurrencykit.org/ \cp build/ck.pc  /usr/lib64/pkgconfig/ $ ./autogen.sh $ ./configure $ make $ make check $ sudo make install 错误1: 修改cpplint.py, def...
分类:其他好文   时间:2014-06-24 17:34:43    阅读次数:294
检查HP服务器内存状态脚本
检查HP服务器内存状态脚本脚本1(如有问题则发邮件通知):#vidisk.sh按a或i进入编辑模式#!/bin/bashName=`hostname`Date=`date+%m%d%y`Num=`dmidecode|grep-i‘serialnumber‘|head-n1`Mem=`/sbin/hpasmcli-s"showdimm"|grepStatus|awk-F[:""]+‘{print$2}‘‘`#echo$Diski=1;forOK..
分类:其他好文   时间:2014-06-24 16:11:12    阅读次数:293
nagios 监控 网卡流量 脚本
#!/bin/bash # #Time:2014-06-23 #Author:ftlynx #Function:useNET-SNMPgetNICtrafficonnagios. Usage(){ echo"Usage:check_traffic.sh[options]" echo" -H HostIP." echo" -P net-snmpcommunitystring." echo" -N NICName." echo" -W nagioswarningvalue.Format:200,300..
分类:移动开发   时间:2014-06-24 16:10:35    阅读次数:224
Linux下用Intel编译器编译安装NetCDF-Fortan库(4.2版本后)
本来这个问题真的没必要写的,可是真的困扰我太久%>_/bin/compilervars.sh intel64接下来就是用Intel编译器编译安装netcdf库了:Building NetCDF* with the Intel® compilers官方文档关键就是设置几个编译选项:export CC=...
分类:Web程序   时间:2014-06-24 13:59:17    阅读次数:301
nginx添加系统服务(start|stop|restart)
nginx添加系统服务1、编写脚本,名为nginx#!/bin/sh##nginx - this script start and stops the nginx daemon##chkconfig: -85 15#description: Nginx is an HTTP(S) server, H...
分类:其他好文   时间:2014-06-22 12:49:41    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!