<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>手工活 on 备忘</title>
    <link>https://blog.witd.in/tags/%E6%89%8B%E5%B7%A5%E6%B4%BB/</link>
    <description>Recent content in 手工活 on 备忘</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>kongfei605@gmail.com (kongfei)</managingEditor>
    <webMaster>kongfei605@gmail.com (kongfei)</webMaster>
    <copyright>(c) 2022 witd. All rights reserved</copyright>
    <lastBuildDate>Fri, 17 May 2013 18:24:23 +0800</lastBuildDate>
    
	<atom:link href="https://blog.witd.in/tags/%E6%89%8B%E5%B7%A5%E6%B4%BB/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>php_extend</title>
      <link>https://blog.witd.in/2013/05/17/php_extend/</link>
      <pubDate>Fri, 17 May 2013 18:24:23 +0800</pubDate>
      <author>kongfei605@gmail.com (kongfei)</author>
      <guid>https://blog.witd.in/2013/05/17/php_extend/</guid>
      <description>&lt;p&gt;当初安装php时都是默认安装，今天给机器添加硬件监控时用到了认证，程序是php写的，里面有个curl_init（）函数，执行时报错。因此，需要让php支持curl函数。
原先编译的php目录在&lt;code&gt;/home/thur/softbin/php&lt;/code&gt;目录下；&lt;/p&gt;

&lt;p&gt;php源代码在&lt;code&gt;/home/thur/softdir/php-5.3.24&lt;/code&gt;目录下。&lt;/p&gt;

&lt;h4 id=&#34;1-找到当前运行的php版本的源代码目录-如-php-5-2-10&#34;&gt;1.找到当前运行的php版本的源代码目录，如 php-5.2.10。&lt;/h4&gt;

&lt;p&gt;进入curl扩展库目录。&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-shell&#34;&gt;cd /home/thur/softdir/php-5.3.24/ext/curl
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>sendmail -t 实现邮件抄送</title>
      <link>https://blog.witd.in/2013/05/02/sendmail--t-%E5%AE%9E%E7%8E%B0%E9%82%AE%E4%BB%B6%E6%8A%84%E9%80%81/</link>
      <pubDate>Thu, 02 May 2013 18:21:41 +0800</pubDate>
      <author>kongfei605@gmail.com (kongfei)</author>
      <guid>https://blog.witd.in/2013/05/02/sendmail--t-%E5%AE%9E%E7%8E%B0%E9%82%AE%E4%BB%B6%E6%8A%84%E9%80%81/</guid>
      <description>&lt;p&gt;在发送文件MAIL_FILE的内容中添加&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-shell&#34;&gt;Cc: $cc_list
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;code&gt;senmail&lt;/code&gt; 发送参数使用 -t参数，形如：&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-shell&#34;&gt;/usr/lib/sendmail -t &amp;lt; ${MAIL_FILE}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;这样在发送邮件时会自动扫描发送文件中的To Cc等内容。
&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>磁盘检查</title>
      <link>https://blog.witd.in/2013/05/02/%E7%A3%81%E7%9B%98%E6%A3%80%E6%9F%A5/</link>
      <pubDate>Thu, 02 May 2013 18:02:52 +0800</pubDate>
      <author>kongfei605@gmail.com (kongfei)</author>
      <guid>https://blog.witd.in/2013/05/02/%E7%A3%81%E7%9B%98%E6%A3%80%E6%9F%A5/</guid>
      <description>&lt;p&gt;机器死机重启后需要对/home分区进行检查&lt;/p&gt;

&lt;p&gt;以root权限执行&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;df命令可以查看磁盘分区使用情况，但这里使用是为了获取/home 所对应的设备文件，在磁盘扫描的时候会用到这个/dev/sda3参数&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-shell&#34;&gt;df -h
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;Filesystem Size Used Avail Use% Mounted on&lt;/li&gt;
&lt;li&gt;/dev/sda2 …………xx…………………….. /&lt;/li&gt;
&lt;li&gt;/dev/sda3 …..  …..xx……………………. /home&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;code&gt;umount /home&lt;/code&gt; 或者&lt;code&gt;umount /dev/sda3&lt;/code&gt; #卸载/home对应的设备文件&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;这时提示/home对应的设备忙，因为有一些进程在使用该分区&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;code&gt;fuser -m /home&lt;/code&gt; #显示使用/home分区的进程ID
&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>APM编译安装</title>
      <link>https://blog.witd.in/2013/04/30/apm%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85/</link>
      <pubDate>Tue, 30 Apr 2013 17:38:19 +0800</pubDate>
      <author>kongfei605@gmail.com (kongfei)</author>
      <guid>https://blog.witd.in/2013/04/30/apm%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85/</guid>
      <description>&lt;p&gt;软件包存放路径：&lt;code&gt;/home/thur/opdir/soft&lt;/code&gt;，部署路径：&lt;code&gt;/home/thur/local/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;soft目录下有AMP和freetype,jpeg,libpng,mhash,php,curl,gd,libmcrypt,libxml,zlib安装包；&lt;/p&gt;

&lt;p&gt;tar zxvf 相应的安装包.tar.gz&lt;/p&gt;

&lt;h2 id=&#34;一-准备&#34;&gt;一 准备&lt;/h2&gt;

&lt;p&gt;首先在/home/thur/local下建立相应的目录，&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-shell&#34;&gt;mkdir -p /home/thur/local/{apache,freetype,jpeg,libpng,mhash,php,curl,gd,libmcrypt,libxml,mysql,zlib}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>