<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[ FreeBSD13上配置静态IP地址和安装Ports，搭建nginx 0.8.x + PHP 5.3.x(FastCGI) + MySQL 5.1.x]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 24 Sep 2010 14:11:44 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	cat /etc/rc.conf<br/>hostname=&quot;freebsd-unmp-10-10-0-237&quot;<br/>#ifconfig_vtnet0=&quot;inet 10.10.0.237 netmask 255.255.255.0&quot;&nbsp;&nbsp;#为名称是vtnet0的网卡设置<br/>ifconfig_re0=&quot;inet 10.10.0.237 netmask 255.255.255.0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#ifconfig 看网卡名<br/><br/>defaultrouter=&quot;10.10.0.1&quot;<br/><br/>/etc/netstart<br/><br/>FreeBSD13上配置静态IP地址：<br/>Port安装准备<br/>修改DNS 命令：ee /etc/resolv.conf<br/>添加DNS服务器地址 nameserver x.x.x.x&nbsp;&nbsp;存盘重启(x.x.x.x用实际的ip地址代替）<br/>下载Port安装目录文件 命令：portsnap fetch<br/>更新Port安装目录文件 命令：portsnap extract update<br/><br/>来自：<a href="https://liujia.anqun.org/index.php/archives/1451/" target="_blank">https://liujia.anqun.org/index.php/archives/1451/</a><br/><br/><br/>=============<br/>一、制作启动U盘<br/> 从FreeBSD官网（https://www.freebsd.org/）下载安装源程序: FreeBSD-12.0-RELEASE-amd64-memstick.img<br/>从rufus官网（https://rufus.akeo.ie/）下载rufus.exe。<br/>用rufur制作FreeBSD安装启动盘。<br/> <br/>二、安装FreeBSD12.0<br/>将电脑设置成U盘启动。<br/>启动后，基本自动安装，如遇选择项，全选Y；<br/>添加用户（略）。<br/> <br/>三、开通SSH服务<br/>安装完毕后，重启。<br/>root登录，修改远程登录配置。<br/>命令：ee /etc/inetd.conf<br/>打开inetd.conf文件，将SSH服务前的“#”去掉，存盘重启。<br/>可以使用Putty远程登录了。<br/> <br/>四、Port安装准备<br/>修改DNS 命令：ee /etc/resolv.conf<br/>添加DNS服务器地址 nameserver x.x.x.x&nbsp;&nbsp;存盘重启(x.x.x.x用实际的ip地址代替）<br/>下载Port安装目录文件 命令：portsnap fetch<br/>更新Port安装目录文件 命令：portsnap extract update<br/>五、安装Apache24<br/>进入 /usr/ports/www/apache24/目录<br/>安装，命令：make install clean<br/>设置服务器地址 命令：ee /usr/local/etc/apache24/httpd.conf<br/>修改www服务器地址 ServerName x.x.x.x:80(x.x.x.x用实际的ip地址代替）<br/>修改开机启动文件，设置Apache24随开机启动，命令：ee /etc/rc.conf <br/>添加 apache24_enable=&quot;YES&quot; 存盘启动。<br/>安装完毕，默认网页目录: /usr/local/www/apache24/data/<br/>Apache相关命令 启动 apachectl start 停止 apachectl stop 重启 apachectl restart<br/>六、安装MySQL80<br/>建议先于PHP安装MySQL，进入/usr/ports/databases/mysql80-server<br/>安装 命令：make install clean<br/>修改开机启动文件，设置MySQL随开机启动，命令：ee /etc/rc.conf<br/>添加 mysql_enable=&quot;YES&quot; 存盘启动。<br/>七、安装php73<br/>进入/usr/ports/lang/php73<br/>安装 命令：make install clean<br/>八、配置 Apache24和PHP73<br/>进入/usr/ports/www/mod_php73<br/>安装 命令：make install clean<br/>修改配置文件 ee /usr/local/etc/apache24/httpd.conf<br/>添加<br/>DrectoryIndex index.html index.php<br/>&lt;FilesMatch &quot;&#92;.php$&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;SetHandler application/x-httpd-php<br/>&lt;�6�8FilesMatch&gt;<br/>&lt;FilesMatch &quot;&#92;.phps$&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;SetHandler application/x-httpd-php-source<br/>&lt;�6�8FilesMatch&gt;<br/>编写入口文件index.php 内容为&lt;?php phpinfo(); ?&gt; 存盘重启 <br/>通过服务器地址访问index.php<br/> 复制配置文件 /usr/local/etc/php.ini-development 到 /usr/local/etc/php.ini <br/>九、配置PHP73和MySQL80<br/>进入/usr/ports/lang/php73-extensions<br/>安装 命令：make install clean<br/>出现选择菜单时，选mysqli<br/>访问index.php，如mysqli加载成功，即安装完成。
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论]  FreeBSD13上配置静态IP地址和安装Ports，搭建nginx 0.8.x + PHP 5.3.x(FastCGI) + MySQL 5.1.x]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>