系统环境安装

  1. # ******************系统环境******************
  2. # 安装nano编辑器,GIT
  3. yum install -y nano git
  4. # 安装Nginx
  5. yum install -y epel-release
  6. yum install -y nginx
  7. systemctl start nginx
  8. systemctl enable nginx
  9. # 安装Supervisor
  10. yum install -y supervisor
  11. systemctl start supervisord
  12. systemctl enable supervisord
  13. # ******************NodeJS环境******************
  14. # 安装NVM
  15. #curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
  16. curl -o- http://192.168.199.208:3865/nvm.sh | bash
  17. source ~/.bashrc
  18. # 安装NodeJS V6.11.1
  19. nvm install 6.11.1
  20. # 安装NRM
  21. npm install -g nrm --registry=http://r.cnpmjs.org
  22. # 使用cnpm源
  23. nrm use cnpm
  24. # 安装cairo
  25. yum -y install gcc+ gcc-c++
  26. yum -y install libjpeg*
  27. yum -y install cairo-devel
  28. # 安装pm2
  29. npm install -g pm2
  30. # ******************Python 环境******************
  31. # 安装 mysql客户端所需库
  32. yum install -y mysql-devel
  33. yum install -y libxslt-devel libxml2-devel python-devel
  34. # 安装 gcc
  35. yum install -y gcc
  36. # 设置pip的源为清华源
  37. mkdir ~/.pip
  38. touch ~/.pip/pip.conf
  39. echo "[global]" >> ~/.pip/pip.conf
  40. echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf
  41. # 安装pip
  42. #curl -O https://bootstrap.pypa.io/get-pip.py
  43. curl -O http://192.168.199.208:3865/get-pip.py
  44. python get-pip.py
  45. # 安装MySQL-python
  46. pip install MySQL-python
  47. # ******************安装Redis******************
  48. cd /usr/local
  49. curl -O http://download.redis.io/redis-stable.tar.gz
  50. tar -zxvf redis-stable.tar.gz
  51. cd /usr/local/redis-stable
  52. make PREFIX=/usr/local/redis install
  53. cp /sxkj/app/t99extra/config-files/redis.conf /usr/local/redis/bin
  54. # 启动Redis
  55. /usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
  56. # 开机启动
  57. echo '/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf' >> /etc/rc.local
  58. chmod +x /etc/rc.d/rc.local
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值