linux下php有多种方式来安装拓展, 主要有包管理式的安装、pecl 安装和源码编译安装。 包管理式的安装卸载尤为方便,而源码编译式的安装则方便参数调优。一般搭建本机开发环境推荐包管理式的安装,节约时间。而线上部署环境则推荐编译安装, 方便调优。本文以CentOS下\`MongoDB 扩展安装举例。yum安装yum方式安装能自动安装拓展的.so动态库,并配置好php.ini 注: 1. 请确保自己yum源里面有对应扩展 2. 安装完成后重启服务器 Nginx 或者 Apacheyum search mongodb | grep php # 搜索yum 源里面MongoDB拓展 yum -y install php72u-pecl-mongo # 安装 PHP 对应版本的MongoDB扩展 systemctl restart nginx # 重新启动 Nginxpecl安装pecl install mongodb安装完成后在PHP配置文件php.ini里面加载 MongoDB扩展,然后重启服务器源码编译安装wget http://pecl.php.net/get/mongodb...
linux下php拓展安装方法

linux下php拓展安装方法

删除文件中含特定字符串的行:sed -e '/abc/d' a.txt // 删除a.txt中含"abc"的行,但不改变a.txt文件本身,操作之后的结果在终端显示 sed -e '/abc/d' a.txt > a.log // 删除a.txt中含"abc"的行,将操作之后的结果保存到a.log sed '/abc/d;/efg/d' a.txt > a.log // 删除含字符串"abc"或“efg"的行,将结果保存到a.log其中,"abc"也可以用正则表达式来代替。
sed删除文件中包含指定字符串的行

sed删除文件中包含指定字符串的行

步骤1: 安装Speech Platform v11go here: http://www.microsoft.com/en-us/download/details.aspx?id=27225click "Download"select the "x64\_SpeechPlatformRuntime\SpeechPlatformRuntime.msi"run the installer第2步:获得备用声音go here: http://www.microsoft.com/en-us/download/details.aspx?id=27224click "Download"select the voice files you want. > GB\_Hazel和US\_ZiraPro音质较佳run the installers for each (duh :P)第3步:提取注册表令牌Open RegeditUnder - HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Speech Server\v11.0\Voices - right cl...
为Windows Speech添加更多声音

为Windows Speech添加更多声音

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml; namespace ClassLibrary { /// <summary> /// 文件传输服务器 /// </summary> public class FileTransferServer { /* 服务器接收文件Socket */ private static Socket ServerSocket; /* 文件根目录 */ private static string ServerRoot; /...
C#文件服务器

C#文件服务器

ExeEmbedForm类/// <summary> /// 将外部exe嵌入至winform中 /// </summary> public class ExeEmbedForm { EventHandler appIdleEvent = null; Control ParentCon = null; string strGUID = ""; public ExeEmbedForm(Control C, string Titlestr) { appIdleEvent = new EventHandler(Application_Idle); ParentCon = C; strGUID = Titlestr; } /// <summary> /// 将属性<code>AppFilename</code>指向的应用程序打开并嵌入此容器 /// </summary> ...
exe程序嵌入Winform窗体

exe程序嵌入Winform窗体