cmd
修改主機(jī)名
hostnamectl set-hostname xxx
vi /etc/hosts
vi /etc/sysctl.conf 增加
fs.file-max = 655350
vi /etc/security/limits.conf 增加如下內(nèi)容:
root soft nofile 655350
root hard nofile 655350
root soft nproc 655350
root hard nproc 655350
* soft nofile 655350
* hard nofile 655350
* soft nproc 655350
* hard nproc 655350
vi /etc/systemd/system.conf 與 /etc/systemd/user.conf 增加如下內(nèi)容
DefaultLimitCORE=infinity
DefaultLimitNOFILE=655350
DefaultLimitNPROC=655350
vi /etc/ssh/sshd_config 搜索Port 改成21688
重啟
yum update -y && yum install -y openssl-devel bzip2-devel libffi-devel zsh mysql mysql-devel && yum install -y git zsh && yum -y install gcc-c++ make nginx epel-release supervisor
安裝supervisor: yum install -y epel-release supervisor
安裝python:
* yum 安裝經(jīng)常會(huì)出現(xiàn)缺少依賴
* 打開官網(wǎng)確認(rèn)最新版本: https://www.python.org/downloads/
* 修改版本下載源碼:wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz
* 編譯:./configure --enable-optimizations && make altinstall
安裝zsh:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安裝:autojump: git clone git://github.com/joelthelion/autojump.git && cd autojump && python3 install.py
復(fù)制 內(nèi)容到~/.zshrc
安裝nodejs:
* 查看目前推薦使用的版本:https://nodejs.org/en/
* 找到下載對(duì)應(yīng)版本的鏈接:https://github.com/nodesource/distributions
* 復(fù)制命令:` curl -sL https://rpm.nodesource.com/setup_16.x | bash -`
* yum install -y nodejs
* npm install -g tyarn
安裝go:
* 復(fù)制下載鏈接:https://golang.google.cn/doc/install
* 按照網(wǎng)頁(yè)命令執(zhí)行