Loading... > 由于本人习惯使用CentOS,所以最初选系统时都是选CentOS,在这里以刚拿上CentOS 8系统的服务器为例,这也是一个记录,防止自己日后配置服务器时忘了😄 1. 首先参照这篇文章配置: <div class="preview"> <div class="post-inser post box-shadow-wrap-normal"> <a href="https://www.xuegao-tzx.top/xxrc/47.html" target="_blank" class="post_inser_a no-external-link no-underline-link"> <div class="inner-image bg" style="background-image: url(https://xuegao.obs.cn-north-4.myhuaweicloud.com/theme/picture/21821/4.jpg);background-size: cover;"></div> <div class="inner-content" > <p class="inser-title">对于CentOS系统的一些操作记录(一)</p> <div class="inster-summary text-muted"> 由于最近在研究Linux的一些操作,在这里我以刚拿到一个CentOS8系统的机子为例,也是一个记录,防止自己日后配... </div> </div> </a> <!-- .inner-content #####--> </div> <!-- .post-inser ####--> </div> 2. 改时区为中国上海:执行`rm -rf /etc/localtime`删除当前默认时区,再执行`ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime`替换成功默认时区为中国上海,输入`date`即可查看当前时间,建议执行后`reboot`一下,使其永久生效 3. 安装中文语言包:先查看当前字符集是否存在zh_CN,执行:`locale -a |grep CN`,安装中文语言包:`yum install -y langpacks-zh_CN`,修改默认语言:执行`vim /etc/locale.conf`后加入:`LANG="zh_CN.UTF-8"`,使其生效:`source /etc/locale.conf` 4. 接下来装利于管理的宝塔: 执行`yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh`,中间按一次`y`即可 5. 由于本人有定时跑Python脚本的需求,所以要安装Python环境,这里推荐安装Anaconda,它包括了很多常用的依赖,方便省事。依次执行:`wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh`,`bash Anaconda3-2022.05-Linux-x86_64.sh`,然后一开始让你同意,你按`Enter`到头后输入`yes`,然后在要求路径时填`/usr/local/anaconda3`,然后一路同意,安装完成。然后配置环境变量:输入`vim /etc/profile`,按`i`进入编辑模式,找到最后,加上:`export ANACONDA_PATH=/usr/local/anaconda3`和`export PATH=$PATH:$ANACONDA_PATH/bin`,后按`Esc`,输入`:wq!`即可;使其立即生效:`source /etc/profile` <div class="tip inlineBlock warning"> 补:Anaconda升级更新:依次执行:更新conda:`conda update -n base -c defaults conda`,更新 anaconda:`conda update anaconda`,更新所有包:`conda update --all` </div> 最后修改:2022 年 06 月 21 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 1 如果觉得我的文章对你有用,请随意赞赏,谢谢