Skip to content

安装篇

star edited this page Aug 4, 2017 · 32 revisions

Welcome to the openstar wiki! 联系我:微信/QQ: 18801180400

安装

对于openstar的使用安装,这里我写一些简单的说明,如有不足之处,请告知下,我会及时修正

安装

这里我先以centos进行说明,其他系统的后续在有时间更新,有空的朋友可以帮我写一下,谢谢

  • centos

    1. 手动安装
       ## 下载开发库等
          ## 如果源安装不了epel-release就用阿里的,自行改yum源
          ## 修改方法 https://yq.aliyun.com/articles/33286
         yum install -y epel-release
         rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
          ## centos6对应的rpm, centos7将数字6改成7就可以
         yum groupinstall -y "Development tools"
         yum install -y wget make gcc readline-devel perl pcre-devel openssl-devel git unzip zip
       ## 安装openresty
         mkdir /opt/openresty
         wget ${openresty_uri}
      

    tar zxvf openresty-${install_version}.tar.gz

    cd ${build_path}/openresty-${install_version} ./configure --prefix=${install_path} --with-luajit gmake gmake install

    chown nobody:nobody -R ${install_path} cd ${install_path} chown root:nobody nginx/sbin/nginx chmod 750 nginx/sbin/nginx chmod u+s nginx/sbin/nginx

    2. yum安装
    
Clone this wiki locally