Ubuntu中如何安装*.sty文件在Ubuntu中,Latex的安装目录一般在一下目录:TexLive2013:/usr/local/texlive/2013/texmf-dist/tex/latex我用的是TexLive2013,相关的一些操作为:到CTAN(ComprehensiveTeXArchiveNetwork)网站下载需要的包文件(有的宏包即为一个单个的xxx.sty文..
分类:
其他好文 时间:
2014-08-08 16:26:06
阅读次数:
210
#!/usr/bin/pythonimportreimportosimportsysimportpycurldefbuffer_line(monitor_log):buf=open("/data0/webinternal_monitor/%s"%monitor_log).read()bytes=os.popen(‘wc-c/data0/logs/%s‘%monitor_log).read().split("")[0]ifint(bytes)<int(buf):return0else:returnint(..
分类:
其他好文 时间:
2014-08-08 16:22:46
阅读次数:
373
1.修改tomcatserver.xml的端口8080改成80.2.Server.xml添加:<Hostname="localhost"appBase="webapps"unpackWARs="true"autoDeploy="true"xmlValidation="false"xmlNamespaceAware="false"><Contextpath=""docBase="/usr/local/tomcat/webapps/www.xxx.xx"reloadable=..
分类:
Web程序 时间:
2014-08-08 16:21:16
阅读次数:
289
转自:here/usr/local/jdk/bin/java -Dresin.home=/usr/local/resin -server -Xms1800M -Xmx1800M -Xmn300M -Xss512K -XX:PermSize=300M -XX:MaxPermSize=300M -XX:...
分类:
其他好文 时间:
2014-08-08 15:50:56
阅读次数:
284
1:yum install cmake make ncurses-devel gcc-c++ bison2:cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql3:yum install wget make gcc gcc-c++ bison autoconf ...
分类:
数据库 时间:
2014-08-08 15:43:16
阅读次数:
235
MySQL数据目录/data/mysql所在的上层目录/data磁盘空间不足导致MySQL启动失败,所以清理了/data目录下除了mysql子目录外的其他无用目录。重启发现还是失败。检查错误日志。看到如下错误: /usr/local/mysql/b...
分类:
数据库 时间:
2014-08-08 13:03:36
阅读次数:
257
1 #!/usr/bin/python 2 3 read = file('thread-1554-1-1.html','r') 4 wr = file('list','w') 5 6 while 1: 7 line=read.readline() 8 if 'href' in ...
分类:
编程语言 时间:
2014-08-08 12:27:06
阅读次数:
629
#!/usr/bin/env python# -*- coding: utf-8 -*-#查找IP地址归属地#writer by keery_log#Create time:2013-10-30#Last update:2013-10-30#用法: python chk_ip.py www.goog...
分类:
编程语言 时间:
2014-08-08 12:25:55
阅读次数:
284
CentOS下的jdk安装 1.先在网上下载好JDK的安装包,然后把安装包放在usr/local/Java目录下(放在哪里就看个人习惯了) 2.打开终端 1>cd /usr/local/java (定位到文件夹/usr/local/Java) 2>tar zxvf jdk-7u51...
分类:
其他好文 时间:
2014-08-08 09:33:55
阅读次数:
249
拓扑图:一安装Nagios1、安装前准备a、创建Nagios用户和用户组,创建nagios主目录[root@Server/]#useradd-s/sbin/nologinnagios[root@Server/]#passwdnagios[root@Server/]#mkdir/usr/local/nagios[root@Server/]#chownnagios.nagios/usr/local/nagios/b、开启sendmail或者Post..
分类:
移动开发 时间:
2014-08-07 19:21:51
阅读次数:
466