Docker 从⼊⻔到实践server_name hello.world; root /var/www/hello.world; index index.html index.htm index.php; } 千万不要在容器实例中存储内容,实例销毁时实例内的所有内容 都会被销毁,下次启动的时候⼜是全新的实例,内容不会保存下 来。如果需要存储服务需要使⽤挂载卷或者外部存储服务。 Dcokerfile docker-compose stop docker-compose.yml version: "2" services: nginx: depends_on: - "php" image: "nginx:latest" volumes: - "$PWD/src/docker/conf:/etc/nginx/conf.d" container_name: "m.look.360.cn-nginx" php: image: "lizheming/php-fpm-yaf" volumes: - "$PWD:/home/q/system/m_look_360_cn" container_name: "m.look.360.cn-php" server { listen 80; server_name0 码力 | 30 页 | 2.88 MB | 1 年前3
微博Service Mesh实践BeiJing 业务部⻔门调⽤用链 微博Service Mesh实践 - WeiboMesh �5 RPC A WEB A 平台体系 RPC B WEB B Golang 服务 PHP 服务 OR服务 …… RestFul API 业务部⻔门 Motan ➢ 业务部⻔门语⾔言种类繁多 ➢ 微服务体系建设不不完善/重复 ➢ ⽹网络抖动,dns不不稳定 ➢ 4,7层冗⻓长调⽤用链及资源消耗 改造成本 • 服务治理理Service Mesh Meetup · BeiJing 改造成本 �8 微博Service Mesh实践 - WeiboMesh Server(php/java/..) golang/php/java Registry grpc/yar/motan ➢ 语⾔言特性 ➢ 历史积累 ➢ 业务侵⼊入较⼤大,client太重 ➢ 性能 ➢ 扩展性差 ➢ 推⼴广困难 1:agent_port/service=path?group=groupService Mesh Meetup · BeiJing 正向代理理流程 �29 微博Service Mesh实践 - WeiboMesh php/OR/java Client Weibo Mesh register Filter HA+LB Endpoint Cluster degrade0 码力 | 43 页 | 1007.85 KB | 6 月前3
Docker 从入门到实践 0.4orchardup/php5 ADD . /code 以上内容告诉 Docker 创建一个包含 PHP 和 Wordpress 的镜像。更多关于如何编写 Dockerfile 文件的信息 可以查看 镜像创建 和 Dockerfile 使用。 下一步, fig.yml 文件将开启一个 web 服务和一个独立的 MySQL 实例: web: build: . command: php -S 0 environment: MYSQL_DATABASE: wordpress 要让这个应用跑起来还需要两个文件。 第一个, wp-config.php ,它是一个标准的 Wordpress 配置文 件,有一点需要修改的是把数据库的配置指向 db 容器。 php define('DB_NAME', 'wordpress'); define('DB_USER', 'root'); define('DB_PASSWORD' define('ABSPATH', dirname(__FILE__) . '/'); require_once(ABSPATH . 'wp-settings.php'); 第二个, router.php ,它告诉 PHP 内置的服务器怎么运行 Wordpress: php $root = $_SERVER['DOCUMENT_ROOT']; chdir($root); $path = '/'.ltrim(0 码力 | 179 页 | 2.27 MB | 1 年前3
Service Mesh的实践分享• 接入简单 • 保证性能 • 节省资源 Java App Local Proxy OSP Server Remote Proxy Cluster Thrift over TCP PHP App C/C++/Node JS App Thrift over TCP Thrift over TCP JSON over HTTP JSON over HTTP多语言服务端接入 需要花费很大力气进行迁移和替换PHP Thrift效率低 • 数量众多PHP应用,开发php-sdk over thrift • 在客户端进行序列化,减少一次协议转 换的消耗 • 与Java应用在架构上呼应,保持架构的一 致性 • 然而,实际上PHP Thrift效率低比内置 的HTTP模块慢得多 • 性能消耗比JSON转Thrift还要大 • 最终废弃了PHP Thrift模块,直接使用0 码力 | 30 页 | 4.80 MB | 6 月前3
陌陌Service Mesh架构实践微服务体系演进历程 架构痛点与解决思路 Service Mesh落地方案3/24 背景 /01 陌陌微服务体系演进历程4/24 单体应用到微服务 单体应用 微服务架构 应用拆分 加入PHP API层 PHP API层成为后续多语言服务治理的关键挑战5/24 微服务体系演进 MOA 1.0微服务体系演进历程 自研服务框架产品MOA(Momo service Oriented Architecture)于2013年初上线推广 • 中心化存活检测 多语言支持 • Java、PHP、Python、Go、NodeJs • Redis传输协议 / 复用Redis客户端 • 服务发布Proxy / 并行调用Proxy 服务治理 • 服务治理平台、配置中心 • 监控、日志、分布式跟踪 • 异步调用、压测7/24 流量代理机制 PHP服务发布入流量代理 PHP并行调用出流量代理 16年起开始使用流量代理机制解决跨语言服务治理问题8/240 码力 | 25 页 | 1.25 MB | 6 月前3
OpenShift Container Platform 4.14 镜像镜像流和模板的支持。 Cluster Samples Operator 将继续支持 S2I 构建器镜像和模板,并接受更新。S2I 镜像流和模板包括: Ruby Python Node.js Perl PHP HTTPD Nginx EAP Java Webserver .NET Go 从 OpenShift Container Platform 4.16 开始,Cluster Samples 00cadc392d39d5ef9117cbc8a31db0889eedd442 io.openshift.build.commit.message: 'Merge pull request #51 from php-coder/fix_url_and_sti' io.openshift.build.commit.ref: master io.openshift.build.image: Platform 提供了很多默认的即时应用程序和快速启动模板,以便您轻松开始为不同 语言创建新应用程序。提供了适用于 Rails (Ruby)、Django (Python)、Node.js、CakePHP (PHP) 和 Dancer (Perl) 的模板。您的集群管理员必须在默认的全局 openshift 项目中创建这些模板,以便您访问。 默认情况下,模板会使用 GitHub 上包含必要应用程序代码的公共源存储库进行构建。0 码力 | 118 页 | 1.13 MB | 1 年前3
Oracle VM VirtualBox 4.0.32 Programming Guide and Referenceweb service for Python . . . . . . . . . . . . . . . . 23 2.1.3 The object-oriented web service for PHP . . . . . . . . . . . . . . . . . 24 2.2 Using the raw web service with any language . . . . . . understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent chapters of Python with the object-oriented web service; extensive support even with other languages (C++, .NET, PHP, Perl and others) Con: Usable from languages where COM bridge available (most languages on Windows0 码力 | 291 页 | 1.84 MB | 1 年前3
Oracle VM VirtualBox 4.1.20 Programming Guide and Referenceweb service for Python . . . . . . . . . . . . . . . . 24 2.1.3 The object-oriented web service for PHP . . . . . . . . . . . . . . . . . 25 2.2 Using the raw web service with any language . . . . . . understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent chapters of Python with the object-oriented web service; extensive support even with other languages (C++, .NET, PHP, Perl and others) Con: Usable from languages where COM bridge available (most languages on Windows0 码力 | 306 页 | 1.92 MB | 1 年前3
Oracle VM VirtualBox 4.1.40 Programming Guide and Referenceweb service for Python . . . . . . . . . . . . . . . . 24 2.1.3 The object-oriented web service for PHP . . . . . . . . . . . . . . . . . 25 2.2 Using the raw web service with any language . . . . . . . understands WSDL. These days, that includes most programming languages that are available: Java, C++, .NET, PHP, Python, Perl and probably many more. All of this is explained in detail in subsequent chapters of Python with the object-oriented web service; extensive support even with other languages (C++, .NET, PHP, Perl and others) Con: Usable from languages where COM bridge available (most languages on Windows0 码力 | 306 页 | 1.92 MB | 6 月前3
OpenShift Container Platform 4.7 镜像00cadc392d39d5ef9117cbc8a31db0889eedd442 io.openshift.build.commit.message: 'Merge pull request #51 from php-coder/fix_url_and_sti' io.openshift.build.commit.ref: master io.openshift.build.image: Platform 提供了很多默认的即时应用程序和快速启动模板,以便您轻松开始为不同 语言创建新应用程序。提供了适用于 Rails (Ruby)、Django (Python)、Node.js、CakePHP (PHP) 和 Dancer (Perl) 的模板。您的集群管理员必须在默认的全局 openshift 项目中创建这些模板,以便您访问。 默认情况下,模板会使用 GitHub 上包含必要应用程序代码的公共源存储库进行构建。 在所部署的应用程序中的更改。 10.6.1.1. Web 框架快速 框架快速启动模板 模板 这些快速启动模板提供了指定框架和语言的基本应用程序: Cakephp:包含 MySQL 数据库的 PHP web 框架 Dancer:包含 MySQL 数据库的 Perl Web 框架 Django:包含 PostgreSQL 数据库的 Python web 框架 NodeJS:包含 MongoDB0 码力 | 123 页 | 1.20 MB | 1 年前3
共 184 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19













