金山云centos7建站总结

栏目: 服务器 · Nginx · 发布时间: 6年前

内容简介:未完待续
  1. 购买云服务器
  2. 购买弹性ip,弹性ip就是公网ip
  3. 配置安全组入站规则,ping通ip
  4. 更换yum源,

    • mv /etc/yum.repos.d/CentOS.repo /etc/yum.repos.d/CentOS.repo_bak
    • wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/rep...
    • 更新 yum makecache yum -y update
      出现 Could not resolve host: mirrors.cloud.aliyuncs.com; Name or service not known" ,安全组配置出站规则
  5. 安装nginx

    • yum install gcc-c++
    • yum install -y pcre-devel
    • yum install -y zlib-devel
    • yum install -y openssl openssl-devel
    • wget -c https://nginx.org/download/ng...
    • tar -zxvf nginx-1.15.12.tar.gz
    • cd nginx-1.15.12
    • 使用默认配置 ./configure
    • make
    • make install
    • 查看安装目录 whereis nginx
    • cd /usr/local/nginx/sbin
    • 启动 /usr/local/nginx, 浏览器能够正常访问nginx页面
    • 查询nginx进场 ps aux|grep nginx
    • 其他命令 ./nginx -s stop ./nginx -s quit ./nginx -s reload
    • 开机启动: vim /etc/rc.local, 增加/usr/local/nginx/sbin/nginx
    • 设置执行权限 chmod 755 rc.local
    • reboot 后应该能正常打开页面
      出现 the HTTP rewrite module requires the PCRE library , yum -y install pcre-devel
      出现 the HTTP gzip module requires the zlib library , yum install -y zlib-devel
  6. 安装node

    • wget https://npm.taobao.org/mirror...
    • tar xvf node-v10.13.0.tar.gz
    • cd ./node-v10.13.0
    • ./configure
    • make, make install
    • node -v 显示版本,安装完毕
      make耗时较长
  7. 安装mysql

    • 检查是否已经安装 rpm -qa | grep mysql
    • wget -i -c http://dev.mysql.com/get/mysq...
    • rpm -ivh mysql57-community-release-el7-10.noarch.rpm
    • yum -y install mysql-community-server
  8. 安装pip

    • yum -y install epel-release
    • yum -y install python-pip
    • yum clean all
    • pip -V 正常显示
    • pip install --upgrade pip 可能需要升级版本

未完待续


以上所述就是小编给大家介绍的《金山云centos7建站总结》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Python Algorithms

Python Algorithms

Magnus Lie Hetland / Apress / 2010-11-24 / USD 49.99

Python Algorithms explains the Python approach to algorithm analysis and design. Written by Magnus Lie Hetland, author of Beginning Python, this book is sharply focused on classical algorithms, but it......一起来看看 《Python Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具