CentOS安装php7
当前环境:CentOS 7.6(x64)卸载旧版本rpm -qa | grep php
yum -y remove php-5.4.6添加源# epel源
yum list installed | grep epel
yum install epel-release yum-utils
# remi源
yum list installed | grep remi
yum install h...
CentOS安装Postgresql
当前环境: CentOS 7.6(x64)安装# 添加库
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# 安装包
yum install postgresql12 postgresql12-server
...
PHP之pdf预览
header("Content-type: application/pdf");
header("Content-Disposition:inline;filename='preview.pdf'");
readfile($path);
Cygwin下安裝Kaldi
在Windows下安装Cygwin安装Devel、Perl、PHP、Python三个安装包。在Cygwin下安装apt-cygCygwin下的apt-cyg是软件安装工具,相当于Ubuntu下的apt-get命令。apt-cyg其实就是一个脚本文件。先下载apt-cyg下来,然后直接放到/bin目录下就可以。然后在cygwin的窗口下输入下面的指令chmod +x /bin/apt-cyg ...
为Windows Speech添加更多声音
步骤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步...
C#文件服务器
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.Tas...
exe程序嵌入Winform窗体
ExeEmbedForm类/// <summary>
/// 将外部exe嵌入至winform中
/// </summary>
public class ExeEmbedForm
{
EventHandler appIdleEvent = null;
Control ParentCon = null;
string strGUID = &quo...
批处理杀死指定端口进程
@echo off
setlocal enabledelayedexpansion
set /p port=请输入端口号:
for /f "tokens=1-5" %%a in ('netstat -ano ^| find ":%port%"') do (
if "%%e%" == ""...