写在前面:用红色字体标出的是CentOS7 下安装 TexLive2017 的记录,参考自《Linux 下安装 TeXLive 2017》。

-1 参考资料

[1] http://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf  《TEX Live 指南—2015

[2] http://www.cnblogs.com/lienhua34/p/3675027.html        《ubuntu 下安装 texlive 并设置 ctex 中文套装

[3] http://seisman.info/install-texlive-under-linux.html       《Linux下安装TeXLive 2015

[4] http://seisman.info/install-texlive-under-linux.html             《Linux 下安装 TeXLive 2017

0 卸载旧版本的 texlive

0.1 卸载 texlive2007

如果系统没有安装过texlive,则跳过第0步。

可以在终端中使用如下命令查询本机已经安装的tex和latex版本:

  1. [She@She LaTex_test]$ tex --version
  2. TeX 3.141592 (Web2C 7.5.)
    kpathsea version 3.5.6
    Copyright D.E. Knuth.
    Kpathsea is copyright Karl Berry and Olaf Weber.
  3. ...
  4. [She@She LaTex_test]$ latex --version
  5. pdfTeX using libpoppler 3.141592-1.40.-2.2 (Web2C 7.5.)
    kpathsea version 3.5.6
    Copyright Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
    Kpathsea is copyright Karl Berry and Olaf Weber.
  6. ...

通常,采用系统命令 1 sudo yum install texlive-latex ,自动安装的texlive的版本都比较旧。

如果查到的版本太旧,则手动卸载和删除它们,在终端中依次执行如下命令:

  1. 1 sudo yum remove texlive-latex
  2. 2 sudo rm -rf /usr/local/texlive/2015
  3. 3 sudo rm -rf ~/.texlive2015
  4. 4 sudo rm -rf /usr/local/share/texmf
  5. 5 sudo rm -rf /var/lib/texmf
  6. 6 sudo rm -rf /etc/texmf
  7. 7 sudo rm -rf /usr/share/texmf
  8. 8 sudo rm -rf /usr/share/texmf-errata
  9. 9 sudo yum remove tex-common
  10. 10 sudo rm -rf ~/.texlive

至此,系统上的texlive清除完毕,重启电脑之后,就可以开始新版本的安装工作。

1 安装 texlive2015

1.1 下载 texlive2015

下载地址: http://mirror.hust.edu.cn/CTAN/systems/texlive/Images/texlive2015-20150523.iso,这是来自华中科技大学的镜像。

CentOS7 下安装 TexLive2017:华中科技大学的镜像下载速度太慢,改为下载官方镜像

1.2 挂载 iso并安装texlive2015

将下载的 texlive2015-20150523.iso 挂载到/mnt 目录下并运行 install-tl 进行安装

  1. sudo mount -o loop texlive2015-.iso /mnt/tmp
  2. cd /mnt/tmp
  3. sudo ./install-tl

出现选项之后,输入   I   直接安装即可,几分钟即可安装完毕。

  1. [She@She tmp]$ sudo ./install-tl
  2. Loading ./tlpkg/texlive.tlpdb
  3. Installing TeX Live 2015 from: .
  4. Platform: x86_64-linux => 'GNU/Linux on x86_64'
  5. Distribution: inst (compressed)
  6. Directory for temporary files: /tmp
  7.  
  8. ======================> TeX Live installation procedure <=====================
  9.  
  10. ======> Letters/digits in <angle brackets> indicate <=======
  11. ======> menu items for commands or options <=======
  12.  
  13. Detected platform: GNU/Linux on x86_64
  14.  
  15. <B> binary platforms: 1 out of 14
  16.  
  17. <S> set installation scheme (scheme-full)
  18.  
  19. <C> customizing installation collections
  20. 47 collections out of 48, disk space required: 4044 MB
  21.  
  22. <D> directories:
  23. TEXDIR (the main TeX directory):
  24. /usr/local/texlive/2015
  25. TEXMFLOCAL (directory for site-wide local files):
  26. /usr/local/texlive/texmf-local
  27. TEXMFSYSVAR (directory for variable and automatically generated data):
  28. /usr/local/texlive/2015/texmf-var
  29. TEXMFSYSCONFIG (directory for local config):
  30. /usr/local/texlive/2015/texmf-config
  31. TEXMFVAR (personal directory for variable and automatically generated data):
  32. ~/.texlive2015/texmf-var
  33. TEXMFCONFIG (personal directory for local config):
  34. ~/.texlive2015/texmf-config
  35. TEXMFHOME (directory for user-specific files):
  36. ~/texmf
  37.  
  38. <O> options:
  39. [ ] use letter size instead of A4 by default
  40. [X] allow execution of restricted list of programs via \write18
  41. [X] create all format files
  42. [X] install macro/font doc tree
  43. [X] install macro/font source tree
  44. [ ] create symlinks to standard directories
  45. [X] after install, use tlnet on CTAN for package updates
  46.  
  47. <V> set up for portable installation
  48.  
  49. Actions:
  50. <I> start installation to hard disk
  51. <H> help
  52. <Q> quit
  53.  
  54. Enter command: I

安装完成之后, 提示如下:

  1. ...
  2. Installing [3051/3056, time/total: 06:07/06:07]: zlmtt [56k]
  3. Installing [3052/3056, time/total: 06:07/06:07]: zwgetfdate [242k]
  4. Installing [3053/3056, time/total: 06:07/06:07]: zwpagelayout [587k]
  5. Installing [3054/3056, time/total: 06:07/06:07]: zxjafbfont [3k]
  6. Installing [3055/3056, time/total: 06:07/06:07]: zxjafont [136k]
  7. Installing [3056/3056, time/total: 06:07/06:07]: zxjatype [142k]
  8. Time used for installing the packages: 06:07
  9. running mktexlsr /usr/local/texlive/2015/texmf-dist ...
  10. mktexlsr: Updating /usr/local/texlive/2015/texmf-dist/ls-R...
  11. mktexlsr: Done.
  12. writing fmtutil.cnf to /usr/local/texlive/2015/texmf-dist/web2c/fmtutil.cnf
  13. writing updmap.cfg to /usr/local/texlive/2015/texmf-dist/web2c/updmap.cfg
  14. writing language.dat to /usr/local/texlive/2015/texmf-var/tex/generic/config/language.dat
  15. writing language.def to /usr/local/texlive/2015/texmf-var/tex/generic/config/language.def
  16. writing language.dat.lua to /usr/local/texlive/2015/texmf-var/tex/generic/config/language.dat.lua
  17. running mktexlsr /usr/local/texlive/2015/texmf-var /usr/local/texlive/2015/texmf-config /usr/local/texlive/2015/texmf-dist ...
  18. mktexlsr: Updating /usr/local/texlive/2015/texmf-config/ls-R...
  19. mktexlsr: Updating /usr/local/texlive/2015/texmf-dist/ls-R...
  20. mktexlsr: Updating /usr/local/texlive/2015/texmf-var/ls-R...
  21. mktexlsr: Done.
  22. running updmap-sys --nohash ...done
  23. re-running mktexlsr /usr/local/texlive/2015/texmf-var /usr/local/texlive/2015/texmf-config ...
  24. mktexlsr: Updating /usr/local/texlive/2015/texmf-config/ls-R...
  25. mktexlsr: Updating /usr/local/texlive/2015/texmf-var/ls-R...
  26. mktexlsr: Done.
  27. setting up ConTeXt cache: running mtxrun --generate ...done
  28. pre-generating all format files, be patient...
  29. running fmtutil-sys --no-error-if-no-engine=luajittex --all ...done
  30. running package-specific postactions
  31. finished with package-specific postactions
  32.  
  33. See
  34. /usr/local/texlive/2015/index.html
  35. for links to documentation. The TeX Live web site
  36. contains updates and corrections: http://tug.org/texlive.
  37.  
  38. TeX Live is a joint project of the TeX user groups around the world;
  39. please consider supporting it by joining the group best for you. The
  40. list of user groups is on the web at http://tug.org/usergroups.html.
  41.  
  42. Add /usr/local/texlive/2015/texmf-dist/doc/info to INFOPATH.
  43. Add /usr/local/texlive/2015/texmf-dist/doc/man to MANPATH
  44. (if not dynamically found).
  45.  
  46. Most importantly, add /usr/local/texlive/2015/bin/x86_64-linux
  47. to your PATH for current and future sessions.
  48.  
  49. Welcome to TeX Live!
  50. Logfile: /usr/local/texlive/2015/install-tl.log
  51. [She@She tmp]$

至此,texlive2015已经成功安装。

将 texlive2015-20150523.iso 卸载.

  1. cd ..
    sudo umount /mnt/tmp

1.3 修改环境变量

texlive 默认的安装目录是/usr/local/texlive/2015/bin/x86_64-linux/ (64位系统)或.../i386-linux/ (32位系统),为了让 shell 能够自动找到 tex 的 bin 文件,我们需要修改环境变量 PATH。

如果我们希望系统也能够自动找到 texlive 的 man 或 info 文档,我们一并修改环境变量 MANPATH 和 INFOPATH。

在终端输入如下,编辑 $HOME/.bashrc 文档 或 $HOME/.bash_profile 或 /etc/profile.d/texlive2017.sh (三个文档只需修改其中一个) :

  1. vim ~/.bashrc

或 在 ~/.bashrc 中添加下面的内容:

  1. PATH=/usr/local/texlive/2015/bin/x86_64-linux:$PATH; export PATH
  2. MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATH; export MANPATH
  3. INFOPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$INFOPATH; export INFOPATH

又或 在 /etc/profile.d/texlive2017.sh 中添加以下内容:

  1. #!/bin/bash
  2. # setting for TexLive environment variables, edit by She
  3. export PATH="/usr/local/texlive/2017/bin/x86_64-linux":$PATH
  4. export MANPATH="/usr/local/texlive/2017/texmf-dist/doc/man":$MANPATH
  5. export INFOPATH="/usr/local/texlive/2017/texmf-dist/doc/info":$INFOPATH
  6. export TEXINPUTS="/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig"
  7. export TEXMF="/usr/local/texlive/2017/texmf-dist"

接着,修改/etc/man.config (CentOS7对应的是这个文件: sudo gedit /etc/man_db.conf )

  1. sudo vi /etc/man.config

在# set up PATH to MANPATH mapping下输入 (注意:中间的空白部分不是空格,而是Tab分隔符)

  1. MANPATH_MAP  /usr/local/texlive/2015/bin/x86_64-linux  /usr/local/texlive/2015/texmf-dist/doc/man

重启。

1.4 测试安装是否成功

(1)首先确认我们安装的 tex 和latex 版本

  1. [She@She tmp]$ tex --version
  2. TeX 3.14159265 (TeX Live 2015)
  3. kpathsea version 6.2.1
  4. Copyright 2015 D.E. Knuth.
  1. [She@She tmp]$ latex --version
  2. pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015)
  3. kpathsea version 6.2.1
  4. Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).

(2)编写一个简单的 tex 文件,然后编译它

新建一个 test.tex 文件,然后输入下面内容

  1. \documentclass{article}
  2. \begin{document}
  3. Hello \LaTeX!
  4. \end{document}

然后运行下面命令即可生成 test.pdf。

  1. [She@She LaTex_test]$ xelatex test.tex

双击打开 test.pdf,看到如下内容

  

现在,texlive可以正常工作。

2 配置中文环境和中文字体安装

2.1 拷贝Windows字体

 (1) 创建Windows字体目录WinFonts和Adobe字体目录AdobeFonts。

  1. sudo mkdir /usr/share/fonts/WinFonts
  2. sudo mkdir /usr/share/fonts/AdobeFonts

WinFonts位于C:\Windows\fonts\文件夹下,只要ttf、TTF、ttc 和 TTC 格式的中文字体(SimSun字体对应的文件是 simsun.ttc);Adobe的字体则位于它的安装目录下,一个名叫font的文件夹内。

 (2) 复制上述准备的字体到各自目录。

  1. sudo cp /media/Ushe/WindowsFonts/* /usr/share/fonts/WinFonts
  2. sudo cp /media/Ushe/AdobeFonts/* /usr/share/fonts/AdobeFonts

这里需要注意:修改上面拷贝字体的权限

sudo chmod 644 /usr/share/fonts/WinFonts/*

sudo chmod 644 /usr/share/fonts/AdobeFonts/*

如果没有这一步,会在编译tex文件时出现下面类似的错误:

SimSun at 17.28pt not loadable

 (3) 刷新字体缓存

  1. sudo mkfontscale
  2. sudo mkfontdir
  3. sudo fc-cache -fsv

2.2 安装中文字体后的配置

(1) 查看系统中安装的中文字体的名字。

  1. fc-list :lang=zh | sort

(2) 查看并根据生成的 fonts 编辑 ctex-xecjk-winfonts.def(如果不存在,则新建该文件)[CentOS7 中安装 TexLive2017 时,可略过这一步]

  1. sudo vi /usr/local/texlive//texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def

 编辑前ctex-xecjk-winfonts.def如下:

  1. % ctex-xecjk-winfonts.def: Windows xeCJK 字体设置,默认为六种中易字体
  2. %vim:ft=tex/setCJKmainfont[BoldFont={SimHei},ItalicFont={[simkai.ttf]}]
  3. {SimSun}
  4. /setCJKsansfont{SimHei}
  5. /setCJKmonofont{[simfang.ttf]}
  6. /setCJKfamilyfont{zhsong}{SimSun}
  7. /setCJKfamilyfont{zhhei}{SimHei}
  8. /setCJKfamilyfont{zhkai}{[simkai.ttf]}
  9. /setCJKfamilyfont{zhfs}{[simfang.ttf]}
  10. /newcommand*{/songti}{/CJKfamily{zhsong}} % 宋体
  11. /newcommand*{/heiti}{/CJKfamily{zhhei}} % 黑体
  12. /newcommand*{/kaishu}{/CJKfamily{zhkai}} % 楷书
  13. /newcommand*{/fangsong}{/CJKfamily{zhfs}} % 仿宋
  14. /newcommand*{/lishu}{/CJKfamily{zhli}} % 隶书
  15. /newcommand*{/youyuan}{/CJKfamily{zhyou}} % 幼圆
  16. /endinput

编辑后 ctex-xecjk-winfonts.def 的内容:

  1. % ctex-xecjk-winfonts.def: Windows xeCJK 字体设置,默认为六种中易字体
  2. % vim:ft=tex
  3. /setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}] {SimSun}
  4. /setCJKsansfont{SimHei}
  5. /setCJKmonofont{FangSong}
  6. /setCJKfamilyfont{zhsong}{SimSun}
  7. /setCJKfamilyfont{zhhei}{SimHei}
  8. /setCJKfamilyfont{zhkai}{KaiTi}
  9. /setCJKfamilyfont{zhfs}{FangSong}
  10. /setCJKfamilyfont{zhli}{LiSu}
  11. /setCJKfamilyfont{zhyou}{YouYuan}
  12. /newcommand*{/songti}{/CJKfamily{zhsong}} % 宋体
  13. /newcommand*{/heiti}{/CJKfamily{zhhei}} % 黑体
  14. /newcommand*{/kaishu}{/CJKfamily{zhkai}} % 楷书
  15. /newcommand*{/fangsong}{/CJKfamily{zhfs}} % 仿宋
  16. /newcommand*{/lishu}{/CJKfamily{zhli}} % 隶书
  17. /newcommand*{/youyuan}{/CJKfamily{zhyou}} % 幼圆
  18. /endinput

(3)  同上.查看并根据生成的fonts文件修改ctex-xecjk-adobefonts.def。

3 测试ctex中文套装

要使我们的texlive支持中文,我们使用ctex套装。

关于ctex的介绍见 http://www.ctex.org/HomePage。

texlive 安 装 包 默 认 携带 了 ctex 宏 包,ctex 宏 包 的 目 录 为/usr/local/texlive/2015/texmf-dist/tex/latex/ctex。

3.1  测试1

输入一个典型的中文支持例子测试,新建一个名为test.tex的文件,其内容如下:

  1. \documentclass[UTF8]{ctexart}
  2. \begin{document}
  3. 这是我的第一个\TeX{}文件
  4. \end{document}

用xelatex命令编译: [She@She LaTex_test]$ xelatex test.tex

结果如下,

3.2  测试2

我们新建一个 ctex.tex 文件,输入下面的内容

  1. \documentclass{ctexart}
  2. \begin{document}
  3. 您好,\LaTeX!
  4. \end{document}

保存,然后运行下面命令,可以得到结果。

  1. [She@She LaTex_test]$ xelatex ctex.tex

4 更新源配置

配置合适的CTAN源可以加快宏包更新的网速,以中科大的源为例:

  1. $ su
    密码:
    [root@localhost She]# tlmgr option repository http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet
    tlmgr: setting default package repository to http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet

之后,可以利用  tlmgr  进行网络更新。CTAN 上的包更新很频繁,所以即便是最新版的 texlive2017,其中也有大量的宏包需要更新(可能包括 tlmgr 程序本身)

  1. [root@localhost She]# tlmgr update --self # 更新 TeXLive 包管理器 tlmgr
    tlmgr: package repository http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet (verified)
    tlmgr: saving backups to /usr/local/texlive/2017/tlpkg/backups
    [1/1, ??:??/??:??] update: texlive.infra [339k] (44424 -> 44836) ... done
    running mktexlsr ...
    done running mktexlsr.
    running mtxrun --generate ...
    done running mtxrun --generate.
    tlmgr: package log updated: /usr/local/texlive/2017/texmf-var/web2c/tlmgr.log
  2. [root@localhost She]# tlmgr update --all # 更新 TeXLive 的全部包
    tlmgr: package repository http://mirrors.ustc.edu.cn/CTAN/systems/texlive/tlnet (verified)
    tlmgr: saving backups to /usr/local/texlive/2017/tlpkg/backups
    [  1/192] auto-remove: rputover ... done
    [  2/192, ??:??/??:??] update: GS1 [1125k] (27540 -> 44822) ... done
    [  3/192, 00:05/15:54] update: acmart [6410k] (44367 -> 44745) ... done
    [  4/192, 00:10/04:44] update: acro [595k] (43186 -> 44667) ... done
    [  5/192, 00:13/05:43] update: actuarialsymbol [293k] (43768 -> 44607) ... done
    [  6/192, 00:25/10:36] update: adobemapping [1944k] (44085 -> 44861) ... done
    [  7/192, 00:28/09:39] update: algorithm2e [579k] (38805 -> 44846) ... done
    [  8/192, 00:29/09:28] update: apa6 [602k] (42516 -> 44652) ... done
    [  9/192, 00:31/09:36] update: apxproof [452k] (43527 -> 44478) ... done
    ...
    [189/192, 07:52/07:52] update: collection-luatex [1k] (42670 -> 44500) ... done
    [190/192, 07:53/07:53] update: collection-pictures [2k] (44395 -> 44823) ... done
    [191/192, 07:54/07:54] update: collection-pstricks [1k] (44305 -> 44742) ... done
    [192/192, 07:55/07:55] update: collection-publishers [2k] (44026 -> 44485) ... done
    running mktexlsr ...
    done running mktexlsr.
    running mtxrun --generate ...
    done running mtxrun --generate.
    running updmap-sys ...
    done running updmap-sys.
    regenerating fmtutil.cnf in /usr/local/texlive/2017/texmf-dist
    running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine xetex ...
    done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine xetex.
    running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-error-if-no-format --byengine euptex ...
    ...
    running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt latex ...
    done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt latex.
    running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt platex ...
    done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt platex.
    ...
    running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt pdfxmltex ...
    done running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --byfmt pdfxmltex.
    ...
    tlmgr: package log updated: /usr/local/texlive/2017/texmf-var/web2c/tlmgr.log

最后,利用  texhash  命令进行位置的更新:

  1. [root@localhost She]# texhash
  2. texhash: Updating /usr/local/texlive/2017/texmf-config/ls-R...
    texhash: Updating /usr/local/texlive/2017/texmf-dist/ls-R...
    texhash: Updating /usr/local/texlive/2017/texmf-var/ls-R...
    texhash: Updating /usr/local/texlive/texmf-local/ls-R...
    texhash: Done.

更新完成。 

CentOS6.5 下安装 texlive2015 并设置 ctex 中文套装的更多相关文章

  1. ubuntu 下安装 texlive 并设置 ctex 中文套装

    1 安装 texlive2013 1.1 下载 texlive2013 下载地址:http://ftp.ctex.org/mirrors/CTAN/systems/texlive/Images/tex ...

  2. CentOS6.8下安装memcached并设置开机自启动

    参考资料:http://www.cnblogs.com/handongyu/p/6419305.html    http://coolnull.com/1986.html 一.安装libevent 首 ...

  3. 【转载】CentOS6.5_X64下安装配置MongoDB数据库

    [转载]CentOS6.5_X64下安装配置MongoDB数据库 2014-05-16 10:07:09|  分类: 默认分类|举报|字号 订阅      下载LOFTER客户端 本文转载自zhm&l ...

  4. CentOS6.5下安装配置MySQL

    CentOS6.5下安装配置MySQL,配置方法如下: 安装mysql数据库:# yum install -y mysql-server mysql mysql-deve 查看mysql-server ...

  5. 建站笔记1:centos6.5下安装mysql

    近期买了个域名,想要玩玩自己建站点:接下来遇到的问题都会一次记录下来.以备自己以后复习查看: 首先建站方案选择: wordPress +centos6.5 +mysql; server买的:搬瓦工最低 ...

  6. centos6.7下安装配置vnc

    vnc是一款使用广泛的服务器管理软件,可以实现图形化管理,下面简单介绍一下如何在centos6.7下安装vnc. 1.安装vncserver yum install tigervnc tigervnc ...

  7. CentOS6.5下安装JDK1.7+MYSQL5.5+TOMCAT7+nginx1.7.5环境安装文档

    ----------------CentOS6.5下安装JDK1.7+MYSQL5.5+TOMCAT7+nginx1.7.5环境安装文档----------------------- [JDK1.7安 ...

  8. CentOS6.5下安装apache2.2和PHP 5.5.28

    CentOS6.5下安装apache2.2 1. 准备程序 :httpd-2.2.27.tar.gz 下载地址:http://httpd.apache.org/download.cgi#apache2 ...

  9. CentOS6.5下安装Apache2.4+PHP7

    CentOS6.5下安装Apache2.4+PHP7 http://blog.csdn.net/along602/article/details/42695779 http://www.th7.cn/ ...

随机推荐

  1. android Json Gson FastJson 解析

    一 Json xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:a ...

  2. 简单的方式优化mysql

    参考博客 自己笔记本上向mysql导入txt数据,有一个table导入了将近4个小时,而且多个table之间都是相互之间存在关系的,所以做联合查询的时候你会发现问题会十分的多,我之前联合查询两个表就死 ...

  3. 渗透杂记-2013-07-13 Windows XP SP2-SP3 / Windows Vista SP0 / IE 7

    Welcome to the Metasploit Web Console! | | _) | __ `__ \ _ \ __| _` | __| __ \ | _ \ | __| | | | __/ ...

  4. VS2015 使用 Web Deploy 发布网站到 WindowsServer2008 R2服务器详解

    使用原因:由于开发期间需要将开发出的网站随时提交到服务器以便公司高层随时访问所以要求将开发出的网站每天发布到服务器,频繁度比较高,因此不能再使用之前的方式(发布到本地后再拷贝文件到服务器),所以想到了 ...

  5. SQL 已有数据的表创建标识列

    针对已有数据的表创建标识列: ,) constraint FID_1 primary key(FID)

  6. Date Picker和UITool Bar的使用

    p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Verdana } span.s1 { } span.s2 { background-colo ...

  7. 使用spring aspect控制自定义注解

    自定义注解:这里是一个处理异常的注解,当调用方法发生异常时,返回异常信息 /** * ErrorCode: * * @author yangzhenlong * @since 2016/7/21 */ ...

  8. mac上的git环境配置

    git生成ssh key for mac 打开终端 cd ~/.ssh 看有没有文件 没有的时候 有有ssh key是这样的多了id_rsa(私钥)和 id_rsa.pub(公钥) 没有的话创建 ss ...

  9. python走起之第十五话

    CSS Positioning(定位) 定位有时很棘手! 决定显示在前面的元素! 元素可以重叠! Positioning(定位) CSS定位属性允许你为一个元素定位.它也可以将一个元素放在另一个元素后 ...

  10. SublimeText2 快捷键一览表

    SublimeText2 快捷键一览表 Sublime Text比起Notepad++,UltraEdit之类Code编辑器来说,其功能有过之而无不及,配合着各种插件使用,Sublime Text在实 ...