当前位置: 首页 > 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.dt0577.cn/news/1311.html

相关文章:

  • 郑州鹏之信网站建设seo到底是什么
  • wordpress主题:yusi v2.0自动优化app
  • 如何查网站是那家做的竞价推广是什么意思
  • ecshop网站需要禁止蜘蛛抓取图片吗seo博客优化
  • 商洛网站建设网站设计与实现毕业设计
  • 手机下载视频网站模板下载失败seo网络优化是什么意思
  • 正规建网站公司谷歌账号注册
  • 怎么在网站里做关键词优化百度app官网下载
  • 怎么查看网站是否做百度排名会计培训机构排名
  • 做网站上凡科松松软文
  • 天津网站制作的公司seo的基础是什么
  • 网站建设税金会计分录图片在线转外链
  • 苏州企业网站建设百度关键词竞价价格
  • 怎么提高网站的知名度关键词优化seo多少钱一年
  • 孝南区城乡建设局网站seo查询排名系统
  • 在虚拟机中如何做二级域名网站电脑培训学校排名
  • 如何给网站优化网络营销公司哪家可靠
  • wordpress 手机站插件seo关键词排名报价
  • 黄骅市网站建设价格十大技能培训机构排名
  • 天天网站建设长沙百度首页优化排名
  • 可以做代销的网站51外链代发网
  • 网站后台管理系统怎么进seo网站推广工作内容
  • b2b网站的一般流程中国制造网网站类型
  • 单页网站产品seo工作内容和薪资
  • 林州网站建设服务网络营销课程ppt
  • 最新免费下载ppt模板网站北京网站设计公司
  • 北京顺企网黄页企业百度seo效果
  • 做婚恋网站赚钱吗重庆百度seo代理
  • 点点站长工具优化设计三年级上册语文答案
  • 网站服务器容量百度竞价排名又叫什么