当前位置: 首页 > news >正文

洪梅网站建设公司如何做个小程序自己卖货

洪梅网站建设公司,如何做个小程序自己卖货,如何搭建一个属于自己的网站,代理网站建设公司创建 Portfile 以下是我参考 nginx 调整后的 Portfile,如需安装指定版本,除了修改版本号之外还需要修改 checksums 里的 sha256 sha256 值需下载 Tengine 源码文件(tar.gz)进行计算 模块的调整在最后的 configure.args-append …

创建 Portfile

以下是我参考 nginx 调整后的 Portfile,如需安装指定版本,除了修改版本号之外还需要修改 checksums 里的 sha256

sha256 值需下载 Tengine 源码文件(tar.gz)进行计算

模块的调整在最后的 configure.args-append 部分,参考 https://tengine.taobao.org/document/install.html 和 Nginx 编译参数

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4PortSystem          1.0name                tengine
version             3.1.0
revision            0
categories          www
license             BSD
maintainers         nomaintainerconflicts           nginx nginx-develdescription         A high performance web server based on Nginx
long_description    Tengine is a web server originated by Taobao, \compatible with Nginx, with additional features.homepage            http://tengine.taobao.org
master_sites        http://tengine.taobao.org/downloaddistname            ${name}-${version}
checksums           sha256 64ed7155c0c904ce0fe7199c21b8eb6c2abfc267278fa8af832c0cb781e864dcdepends_lib         port:pcre \port:openssl \port:zlibset nginx_share     ${prefix}/share/${name}
set nginx_examples  ${nginx_share}/examples
set nginx_confdir   ${prefix}/etc/${name}
set nginx_logdir    ${prefix}/var/log/${name}
set nginx_rundir    ${prefix}/var/run/${name}
set nginx_pidfile   ${nginx_rundir}/${name}.pid
set nginx_all_confs {fastcgi.conf fastcgi_params mime.types nginx.conf scgi_params uwsgi_params}
set auto_activate_confs {nginx.conf mime.types fastcgi.conf}configure.args-append \--with-cc-opt=\"${configure.cppflags} ${configure.cflags}\" \--with-ld-opt=\"${configure.ldflags}\" \--conf-path=${nginx_confdir}/nginx.conf \--error-log-path=${nginx_logdir}/error.log \--http-log-path=${nginx_logdir}/access.log \--pid-path=${nginx_pidfile} \--lock-path=${nginx_rundir}/${name}.lock \--http-client-body-temp-path=${nginx_rundir}/client_body_temp \--http-proxy-temp-path=${nginx_rundir}/proxy_temp \--http-fastcgi-temp-path=${nginx_rundir}/fastcgi_temp \--http-uwsgi-temp-path=${nginx_rundir}/uwsgi_temp \--http-scgi-temp-path=${nginx_rundir}/scgi_temp \--with-compat# pcre2 breaks the lua module (https://trac.macports.org/ticket/65150)
configure.args-append             --without-pcre2# remove --disable-dependency-tracking
configure.universal_args-delete   --disable-dependency-trackingbuild.target        build
destroot.keepdirs   ${destroot}${nginx_logdir} \${destroot}${nginx_rundir}post-destroot {xinstall -d -m 755 ${destroot}${nginx_share}xinstall -d -m 755 ${destroot}${nginx_examples}foreach conf ${nginx_all_confs} {set conf_path "${destroot}${nginx_confdir}/${conf}"if {[file exists ${conf_path}]} {file delete ${conf_path}}if {[file exists ${conf_path}.default]} {move ${conf_path}.default ${destroot}${nginx_examples}}}file rename ${destroot}${prefix}/html ${destroot}${nginx_share}# Install the manpageset man_path "${destroot}${prefix}/share/man/man8"xinstall -d -m 0755 ${man_path}xinstall    -m 0644 ${worksrcpath}/man/nginx.8 ${man_path}reinplace -q "s|/var/run/mytengine.pid|${nginx_pidfile}/|g" ${man_path}/nginx.8
}post-activate {foreach conf ${auto_activate_confs} {if {![file exists ${nginx_confdir}/${conf}]} {xinstall -m 644 ${nginx_examples}/${conf}.default ${nginx_confdir}/${conf}}}
}startupitem.create      yes
startupitem.pidfile     auto ${nginx_pidfile}
startupitem.executable  ${prefix}/sbin/nginx -g "daemon off;"notes "\A set of sample configuration files has been installed in ${nginx_examples}.\n\n\Additionally, the files [join ${auto_activate_confs} ", "] have been copied to ${nginx_confdir} if they didn't exist yet.\n\Adjust these files to your needs before starting Tengine."configure.args-append       --prefix=${prefix} \--with-http_ssl_module \--with-http_v2_module \--with-http_realip_module \--with-http_addition_module \--with-http_xslt_module \--with-http_geoip_module \--with-http_flv_module \--with-http_mp4_module \--with-http_gunzip_module \--with-http_gzip_static_module \--with-http_auth_request_module \--with-pcre \--with-threads \--with-stream \--with-stream_ssl_module \--with-stream_realip_module \--with-stream_geoip_module \--with-stream_ssl_preread_modulelivecheck.type      regexm
livecheck.url       ${homepage}/en/download.html

将文件保存至 ~/Ports/www/tengine/Portfile

添加自定义源

编辑 /opt/local/etc/macports/sources.conf,在最下方加上一行:

# 默认
rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz [default]
# 增加该行,注意替换用户名
file:///Users/用户名/Ports

运行 sudo portindex ~/Ports 加入索引

安装

运行 port info tengine 可以查看到信息后就能通过 install 安装了:

sudo port install tengine

配置

配置文件目录:/opt/local/etc/tengine,同样的修改 nginx.conf 文件即可

日志文件目录:/opt/local/var/log/tengine,建议修改文件夹权限方便通过编辑器查看日志:

sudo chown _www:admin /opt/local/var/log/tengine

运行目录:/opt/local/var/run/tengine

启停

sudo port load tengine
sudo port unload tengine
http://www.yayakq.cn/news/583988/

相关文章:

  • 新泰网站建设内容管理系统有哪些
  • jsp的网站一个人免费看直播
  • wordpress jqseo优化工作内容
  • 北京网站建设91086重庆网上商城网站建设
  • 禹城网站制作wordpress自动压缩图片大小
  • 网站商城支付宝开通怎么做站酷网官网入口
  • 电子商务网站设计实验报告四川展陈公司排名前十
  • 道滘镇网站仿做北京活动策划公司排行
  • 自己做网站的准备工作手机商城网站开发
  • 茂名市电白区住房和城乡建设局网站怎么增加网站浏览量
  • 找别人建个网站多少钱怎么让网站无法自适应
  • 长沙网站开发微联支付宝服务商平台
  • 建设一个网站的流程.简单网页设计html代码
  • 企业网站的优势建什么网站收益比较号
  • 厦门建设厅查询网站首页开发一个网站做公司内部用
  • 北京seo网站推广费用汕头企业网站
  • 广州网站建设规划网站内容如何编辑
  • 网站底部图片代码广州百度网站搭建
  • 云信智联商丘网站建设游戏软件开发流程
  • 深圳住房和建设局官网网站京东的网站是怎么建设的
  • 网站建设项目来源重庆潼南网站建设哪家便宜
  • 个人网站logo需要备案吗北京外贸网站优化
  • wordpress网站制作app如何搭建一个公司网站
  • 网站定制设计制作公司网站网站做维护犯罪
  • 伴奏网站防盗是怎么做的微信商城平台开发
  • 网站压缩深圳市住房城乡建设局网站首页
  • 中南建设的网站山西两学一做登录网站
  • 如何修改wordpress的语言贵州灵溪seo整站优化
  • 分栏型网站如何更好的建设和维护网站
  • 网站app服务器租用可以做黄金期权的网站