<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Symfony中文教程</title>
	<atom:link href="http://www.newlifeclan.com/symfony/feed" rel="self" type="application/rss+xml" />
	<link>http://www.newlifeclan.com/symfony</link>
	<description>站在巨人肩膀上的phpweb框架</description>
	<lastBuildDate>Fri, 12 Dec 2025 00:58:27 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>fatal: unable to look up github.com (port 9418) (Name or service not known)</title>
		<link>http://www.newlifeclan.com/symfony/archives/3037</link>
		<comments>http://www.newlifeclan.com/symfony/archives/3037#comments</comments>
		<pubDate>Wed, 13 Jan 2021 03:44:57 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=3037</guid>
		<description><![CDATA[<p>使用docker，并在其安装git [crayon-69f86fdaad0ee967911698/] 安装完成 [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/3037">fatal: unable to look up github.com (port 9418) (Name or service not known)</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>使用docker，并在其安装git</p><pre class="crayon-plain-tag">yum install git</pre><p>安装完成后，如果你尝试</p><pre class="crayon-plain-tag">git clone git://github.com/mobz/elasticsearch-head.git</pre><p>会遇到一个问题，会给出一个错误</p><pre class="crayon-plain-tag">fatal: unable to look up github.com (port 9418) (Name or service not known)</pre><p><span id="more-3037"></span></p>
<p><strong>解决办法：</strong></p>
<p>继续输入命令</p><pre class="crayon-plain-tag">git config --global url.https://github.com/.insteadOf git://github.com/</pre><p>完事大吉祝你好运！</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/3037">fatal: unable to look up github.com (port 9418) (Name or service not known)</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/3037/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NGINX 配置本地HTTPS(免费证书)</title>
		<link>http://www.newlifeclan.com/symfony/archives/3009</link>
		<comments>http://www.newlifeclan.com/symfony/archives/3009#comments</comments>
		<pubDate>Mon, 28 Dec 2020 05:45:58 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=3009</guid>
		<description><![CDATA[<p>Linux系统下生成证书 生成秘钥key,运行: [crayon-69f86fdaae31d904934701 [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/3009">NGINX 配置本地HTTPS(免费证书)</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<h1><strong>Linux系统下生成证书</strong></h1>
<h2>生成秘钥key,运行:</h2>
<p></p><pre class="crayon-plain-tag">$ openssl genrsa -des3 -out server.key 2048</pre><p>会有两次要求输入密码,输入同一个即可</p>
<p>输入密码，然后你就获得了一个server.key文件.<span id="more-3009"></span></p>
<p>以后使用此文件(通过openssl提供的命令或API)可能经常回要求输入密码,如果想去除输入密码的步骤可以使用以下命令:</p><pre class="crayon-plain-tag">$ openssl rsa -in server.key -out server.key</pre><p>创建服务器证书的申请文件server.csr,运行:</p><pre class="crayon-plain-tag">openssl req -new -key server.key -out server.csr</pre><p>其中Country Name填CN,Common Name填主机名也可以不填,如果不填浏览器会认为不安全.(例如你以后的url为https://abcd/xxxx….这里就可以填abcd),其他的都可以不填.</p>
<h2>创建CA证书:</h2>
<p></p><pre class="crayon-plain-tag">openssl req -new -x509 -key server.key -out ca.crt -days 3650</pre><p>此时,你可以得到一个ca.crt的证书,这个证书用来给自己的证书签名.</p>
<p>创建自当前日期起有效期为期十年的服务器证书server.crt：</p><pre class="crayon-plain-tag">openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey server.key -CAcreateserial -out server.crt</pre><p>ls你的文件夹,可以看到一共生成了5个文件:</p>
<p><strong>ca.crt </strong>  <strong>ca.srl </strong>  <strong> server.crt   server.csr</strong>   <strong>server.key</strong></p>
<p>其中,server.crt和server.key就是你的nginx需要的证书文件.</p>
<h2>如何配置nginx</h2>
<p>打开你的nginx配置文件,搜索443找到https的配置,去掉这段代码的注释.或者直接复制我下面的这段配置:</p><pre class="crayon-plain-tag">server {

listen 443;
server_name localhost;
ssl on;
ssl_certificate /root/Lee/keys/server.crt;#配置证书位置
ssl_certificate_key /root/Lee/keys/server.key;#配置秘钥位置
#ssl_client_certificate ca.crt;#双向认证
#ssl_verify_client on; #双向认证
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;</pre><p>将ssl_certificate改为server.crt的路径,将ssl_certificate_key改为server.key的路径.</p>
<p>nginx -s reload 重载配置<br />
至此,nginx的https就可以使用了,默认443端口.</p>
<h2>如果出现报错信息：</h2>
<p>nginx: [emerg] BIO_new_file(&#8220;/user/local/nginx/temp/server.crt&#8221;) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(&#8216;/user/local/nginx/temp/server.crt&#8217;,&#8217;r&#8217;) error:2006D080:BIO routines:BIO_new_file:no such file)</p>
<p>把server.crt 和server.key 文件放在nginx/conf文件夹下。(和nginx.conf文件同一文件夹)</p>
<p>ssl_certificate  server.crt;<br />
ssl_certificate_key  server.key;</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/3009">NGINX 配置本地HTTPS(免费证书)</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/3009/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This request has been blocked; the content must be served over HTTPS.</title>
		<link>http://www.newlifeclan.com/symfony/archives/2998</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2998#comments</comments>
		<pubDate>Tue, 15 Dec 2020 08:38:25 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2998</guid>
		<description><![CDATA[<p>This request has been blocked; the content must be serv [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2998">This request has been blocked; the content must be served over HTTPS.</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>This request has been blocked; the content must be served over HTTPS.<br />
这个错误是因为，服务器进行https改造之后，使用chrome访问https页面，由于我使用的是阿里云OSS，其内部会引入一些http的连接资源，所以在chrome中访问也面会出现这个问题。此时需要在引用相关文件的html页面中的head头部加入如下内容即可。</p><pre class="crayon-plain-tag">&lt;php&gt;if(IS_HTTPS){&lt;/php&gt;
    &lt;meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"&gt;
    &lt;php&gt;}&lt;/php&gt;</pre><p>&nbsp;</p>
<div id="gtx-trans"></div>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2998">This request has been blocked; the content must be served over HTTPS.</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2998/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php获取当前协议加域名</title>
		<link>http://www.newlifeclan.com/symfony/archives/2988</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2988#comments</comments>
		<pubDate>Thu, 10 Dec 2020 01:38:59 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2988</guid>
		<description><![CDATA[<p>[crayon-69f86fdaaef02838513625/]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2988">php获取当前协议加域名</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p></p><pre class="crayon-plain-tag">function na_site_url() {
        $protocol = (!empty($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
        $domainName = $_SERVER['HTTP_HOST'];

        return $protocol . $domainName;
    }</pre><p></p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2988">php获取当前协议加域名</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2988/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lnmp跨目录访问解决</title>
		<link>http://www.newlifeclan.com/symfony/archives/2787</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2787#comments</comments>
		<pubDate>Thu, 02 Jul 2020 06:20:20 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2787</guid>
		<description><![CDATA[<p>我无意中接触了lnmp部署的环境，使用的lnmp1.7，服务器访问500错误！有时出现No input fil [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2787">lnmp跨目录访问解决</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>我无意中接触了lnmp部署的环境，使用的lnmp1.7，服务器访问500错误！有时出现No input file specified错误</p>
<p>解决办法：</p>
<p>去掉 /usr/local/nginx/conf/fastcgi.conf中的</p><pre class="crayon-plain-tag"># fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"</pre><p>记得重启服务</p>
<p>lnmp restart  （推荐）</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2787">lnmp跨目录访问解决</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2787/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>laravel-admin给admin_users扩展字段</title>
		<link>http://www.newlifeclan.com/symfony/archives/2782</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2782#comments</comments>
		<pubDate>Thu, 02 Jul 2020 06:13:24 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2782</guid>
		<description><![CDATA[<p>我们希望能够做一个功能，这个功能是给admin_user加一个viewself字段，当访问文章管理功能时，如果 [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2782">laravel-admin给admin_users扩展字段</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>我们希望能够做一个功能，这个功能是给admin_user加一个viewself字段，当访问文章管理功能时，如果开启此字段，只展示admin用户自己的文章。</p>
<p>首先我们在数据库中给admin_user添加一个字段</p>
<p><img class="alignnone size-full wp-image-2783" src="http://www.newlifeclan.com/symfony/wp-content/uploads/sites/2/2020/07/20200702140148.png" alt="20200702140148" width="272" height="271" /><span id="more-2782"></span></p>
<p>新建一个Model继承Administrator，添加自己的字段</p>
<p>app\Models\CustomAdministrator.php</p><pre class="crayon-plain-tag">&lt;?php


namespace App\Models;


use Encore\Admin\Auth\Database\Administrator;

class CustomAdministrator extends Administrator
{
    public function __construct( array $attributes = [] ) {
        parent::__construct( $attributes );
        array_push( $this-&gt;fillable, 'viewself' );
    }
}</pre><p>新家一个controller 继承 UserController</p>
<p>app\Admin\Controllers\CustomUserController.php</p><pre class="crayon-plain-tag">&lt;?php
namespace App\Admin\Controllers;
use Encore\Admin\Controllers\UserController;

class CustomUserController extends UserController {
    protected function grid() {
        $g = parent::grid();
        //$g-&gt;column( 'viewself', '只看自己' );
        $states = [
            'on' =&gt; ['text' =&gt; 'YES'],
            'off' =&gt; ['text' =&gt; 'NO'],
        ];

        $g-&gt;viewself()-&gt;switch($states);
        return $g;
    }
    public function form() {
        $f = parent::form();
        $f-&gt;switch( 'viewself','只看自己' );
        return $f;
    }
}</pre><p>覆盖原来的adminuser的路由器</p><pre class="crayon-plain-tag">$router-&gt;resource( 'auth/users', CustomUserController::class );</pre><p>重新访问</p>
<p>http://localhost:8000/admin/auth/users</p>
<p>就可以了</p>
<p>还未完哦！</p>
<p>来到文章管理，我们还要为文章添加控制显示，让开启viewself的用户只能查看自己的文章</p>
<p>来到：app\Admin\Controllers\PostsController.php</p><pre class="crayon-plain-tag">protected function grid()
    {
        $grid = new Grid(new Posts);
        //获取自己权限下的内容
        $username = Admin::user()-&gt;viewself;

        if($username == 1){

            $grid-&gt;model()-&gt;where ('author_id', '=', Admin::user()-&gt;id);

        }
        //获取自己权限下的内容</pre><p>完成测试一下八</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2782">laravel-admin给admin_users扩展字段</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2782/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>laravel-admin 面包屑导航的翻译</title>
		<link>http://www.newlifeclan.com/symfony/archives/2773</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2773#comments</comments>
		<pubDate>Tue, 30 Jun 2020 05:39:29 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2773</guid>
		<description><![CDATA[<p>因为这段没有进行翻译工作，所以我们要覆盖这个模板的部分内容 复制 \vendor\encore\laravel [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2773">laravel-admin 面包屑导航的翻译</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>因为这段没有进行翻译工作，所以我们要覆盖这个模板的部分内容</p>
<p>复制 \vendor\encore\laravel-admin\resources\views\content.blade.php<span id="more-2773"></span></p>
<p>到\resources\views\admin\content.blade.php</p>
<p>改写46行代码：</p><pre class="crayon-plain-tag">@for($i = 2; $i &lt;= count(Request::segments()); $i++)
                    &lt;li&gt;
                        {{__(ucfirst(Request::segment($i)))}}
                    &lt;/li&gt;
                @endfor</pre><p>在\app\Admin\bootstrap.php 添加配置：</p><pre class="crayon-plain-tag">Encore\Admin\Form::forget(['map']);
app('view')-&gt;prependNamespace('admin', resource_path('views/admin'));</pre><p>可以了我们在\resources\lang\zh-CN.json配置好就行了</p>
<p>&nbsp;</p>
<p>你会发现，默认的admin管理会报错，没关系主要是没有翻译的原因</p>
<p>我们在\resources\lang\zh-CN.json 中添加</p><pre class="crayon-plain-tag">"Auth" : "系统管理",
    "Users" : "用户",
    "Roles" : "角色",
    "Permissions" : "权限",
    "Menu" : "导航菜单",
    "Logs" : "日志",</pre><p>OK了</p>
<p>&nbsp;</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2773">laravel-admin 面包屑导航的翻译</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2773/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fopen(): Filename cannot be empty &#8211; Laravel-admin</title>
		<link>http://www.newlifeclan.com/symfony/archives/2763</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2763#comments</comments>
		<pubDate>Mon, 29 Jun 2020 13:19:18 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2763</guid>
		<description><![CDATA[<p>这个问题主要时php.ini中没有配置 upload_tmp_dir = &#8220;C:\Windows\ [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2763">fopen(): Filename cannot be empty &#8211; Laravel-admin</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>这个问题主要时php.ini中没有配置</p>
<p>upload_tmp_dir = &#8220;C:\Windows\Temp&#8221;</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2763">fopen(): Filename cannot be empty &#8211; Laravel-admin</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2763/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>多个php版本的composer使用</title>
		<link>http://www.newlifeclan.com/symfony/archives/2757</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2757#comments</comments>
		<pubDate>Mon, 29 Jun 2020 06:20:56 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2757</guid>
		<description><![CDATA[<p>1：下载 composer.phar，官网https://getcomposer.org/download/的 [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2757">多个php版本的composer使用</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>1：下载 composer.phar，官网https://getcomposer.org/download/的（Composer (composer.phar) versions history下方）有直接下载的链接</p>
<p>2：composer.phar 复制到项目根目录，比如我的是:/home/www/web</p>
<p>3:  执行 /usr/local/php74/bin/php composer.phar update （这里我的安装路径是/usr/local/php74/bin/php,不一定适合你额，请对号入座即可吧）</p>
<p>4：安装依赖包：/usr/local/php74/bin/php composer.phar install</p>
<div id="gtx-trans"></div>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2757">多个php版本的composer使用</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2757/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>docker-compose 修改mac地址</title>
		<link>http://www.newlifeclan.com/symfony/archives/2748</link>
		<comments>http://www.newlifeclan.com/symfony/archives/2748#comments</comments>
		<pubDate>Sun, 28 Jun 2020 09:28:33 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=2748</guid>
		<description><![CDATA[<p>[crayon-69f86fdab0507449485828/] 两个容器不要共用一个mac地址，会有冲突。导 [&#8230;]</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2748">docker-compose 修改mac地址</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p></p><pre class="crayon-plain-tag">myphp56:
    build: ./php
    container_name: "myphp5.6"
    restart: always
    ports:
      - "9100:9000"
    mac_address: a0:48:1c:a9:7a:e7
    networks:
      redis-master:
        ipv4_address: 172.51.0.90</pre><p>两个容器不要共用一个mac地址，会有冲突。导致无法访问</p>
<p><a rel="nofollow" href="http://www.newlifeclan.com/symfony/archives/2748">docker-compose 修改mac地址</a>，首发于<a rel="nofollow" href="http://www.newlifeclan.com/symfony">Symfony中文教程</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/symfony/archives/2748/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
