- # ******************系统环境******************
- # 安装nano编辑器,GIT
- yum install -y nano git
- # 安装Nginx
- yum install -y epel-release
- yum install -y nginx
- systemctl start nginx
- systemctl enable nginx
- # 安装Supervisor
- yum install -y supervisor
- systemctl start supervisord
- systemctl enable supervisord
- # ******************NodeJS环境******************
- # 安装NVM
- #curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
- curl -o- http://192.168.199.208:3865/nvm.sh | bash
- source ~/.bashrc
- # 安装NodeJS V6.11.1
- nvm install 6.11.1
- # 安装NRM
- npm install -g nrm --registry=http://r.cnpmjs.org
- # 使用cnpm源
- nrm use cnpm
- # 安装cairo
- yum -y install gcc+ gcc-c++
- yum -y install libjpeg*
- yum -y install cairo-devel
- # 安装pm2
- npm install -g pm2
- # ******************Python 环境******************
- # 安装 mysql客户端所需库
- yum install -y mysql-devel
- yum install -y libxslt-devel libxml2-devel python-devel
- # 安装 gcc
- yum install -y gcc
- # 设置pip的源为清华源
- mkdir ~/.pip
- touch ~/.pip/pip.conf
- echo "[global]" >> ~/.pip/pip.conf
- echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf
- # 安装pip
- #curl -O https://bootstrap.pypa.io/get-pip.py
- curl -O http://192.168.199.208:3865/get-pip.py
- python get-pip.py
- # 安装MySQL-python
- pip install MySQL-python
- # ******************安装Redis******************
- cd /usr/local
- curl -O http://download.redis.io/redis-stable.tar.gz
- tar -zxvf redis-stable.tar.gz
- cd /usr/local/redis-stable
- make PREFIX=/usr/local/redis install
- cp /sxkj/app/t99extra/config-files/redis.conf /usr/local/redis/bin
- # 启动Redis
- /usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
- # 开机启动
- echo '/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf' >> /etc/rc.local
- chmod +x /etc/rc.d/rc.local
系统环境安装
最新推荐文章于 2022-11-10 14:46:49 发布