重装服务器后需要的基础配置

使用方法等详细信息请关注公众号【生物信息分析学习】(swxxfxxx)

【提示】本文写作命令为:abysw blog 重装服务器后需要的基础配置
【 另 】有任何问题,欢迎来公众号交流!

我的Dell服务器总是出幺蛾子(BUG)【原来中国和外国叫bug都是指幺蛾子】

出幺蛾子了之后,工程师也看不出什么原因,然后就重装系统。

重装系统后,有的东西就不能用了,又要重新配。

于是我翻阅自己以前的博客,看看最简单的环境是什么,如果后续有新增的,也会补充在这个博客里面。
https://www.cnblogs.com/abysw/p/14436791.html

  1. 更新yum源:
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos7.repo (自己找找,我的更新方式见博客BUG-yum源更新)【本次安装的系统源是可用的,不更新】

yum clean all

yum makecache

  1. 下载gcc等依赖

yum install gcc gcc-c++ tcl-devel tk-devel make -y
yum install libxml2-devel openssl-devel gcc gcc-c++ boost-devel libtool -y
yum install tree -y
yum install texlive-dvipng texlive texlive-latex texlive-xetex texlive-collection-latex texlive-collection-latexrecommended texlive-xetex-def texlive-collection-xetex texlive-collection-latexextra -y # 安装latex,画图
yum install ImageMagick -y # 安装convert,图片转换
#yum install gtk2 gtk2-devel gtk2-devel-docs # 安装devtools
yum install gtk3 gtk3-devel gtk3-devel-docs # 安装devtools

yum clean all

  1. 可能需要编辑的文件
    /etc/hosts # 服务器别名设置
    /etc/sysconfig/iptables # 防火墙设置
    /etc/exports # 共享文件夹设置

  2. 可能需要重启的设备
    service nfs restart
    service iptables stop

  3. pip ssl不可用,需要新增文件
    $ cat ~/.pip/pip.conf
    [global]
    index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host = mirrors.aliyun.com

  1. git 通信协议问题[fatal: unable to access ‘https://github.com/tanghaibao/jcvi.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream]
    git config –global http.version HTTP/1.1
    git config –global –unset http.proxy
    git config –global –unset https.proxy

  2. jcvi 故障
    yum install texlive-dvipng texlive texlive-latex texlive-xetex texlive-collection-latex texlive-collection-latexrecommended texlive-xetex-def texlive-collection-xetex texlive-collection-latexextra -y
    pip install latex
    conda install -c conda-forge jupyter_latex_envs -y
    conda install -c conda-forge/label/cf201901 jupyter_latex_envs -y
    conda install -c conda-forge/label/cf202003 jupyter_latex_envs -y