CentOS 下 PHP7.2 安装 mssql sqlsrv扩展以链接 SQL SERVER 数据库

piaoling  2023-03-22 15:50:17

curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo yum install -y msodbcsql mssql-tools unixODBC-devel 修复报错:This extension requires the Microsoft ODBC Driver for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 1、安装依赖包 yum install gcc-c++ yum install unixODBC-devel 2、下载mssql扩展包 官方地址:http://pecl.php.net/package/pdo_sqlsrv ......

类别 :  默认(742)  |  浏览(1231)  |  评论(0)

php5.6 php_sqlsrv

piaoling  2023-03-22 10:12:40

今天配置服务器需要用php和Sqlserver2008数据库,网上找了一些资料,基本上都是说需要下载微软的驱动放在ext文件夹后,再在php.ini中增加如下配置: [PHP_PDO_SQLSRV] extension=php_pdo_sqlsrv_56_ts.dll [PHP_SQLSRV] extension=php_sqlsrv_56_ts.dll 最后重启服务器即可,但我重启了apache之后在phpinfo中还是没有看到sqlsrv的扩展,后来在百度贴吧http://tieba.baidu.com/p/3214930266中找到了问题关键: 原来微软官方提供的microsoft drivers 3.2 for php for sql server并不支持64位的php版本,一些非官方的3.......

类别 :  默认(742)  |  浏览(1028)  |  评论(0)

jquery view js

piaoling  2023-02-01 14:44:35

jquery view js https://github.com/fengyuanchen/jquery-viewer https://toscode.gitee.com/mirrors/Viewer-jQuery demo:https://fengyuanchen.github.io/viewer/ Options You may set viewer options withnew Viewer(image, options). If you want to change the global default options, You may useViewer.setDefaults(options). backdrop Type:BooleanorString Default:true Enable the modal backdrop, specifystaticfor the backdrop that will not close the modal on click. button Type:Boolean Default:true Show the ......

类别 :  默认(742)  |  浏览(1347)  |  评论(0)

CentOS7 安装 PHP7 完全详细教程

piaoling  2022-07-05 16:15:07

CentOS7的默认PHP版本是PHP5,但是如果我们要安装PHP7,不需要将现有的PHP5删除,只要将PHP升级到PHP7即可。 使用 yum provides php 命令可以获取CentOS7的PHP包安装情况。显示的是在现有的安装源中能够安装的最新版本为:php-5.4.16-46.el7.x86_64 在安装PHP7之前,建议先升级更新一下CentOS7的安装包: yum -y update :升级所有软件包的同时也升级软件和系统内核; yum -y upgrade :只是升级所有软件包,但是不升级软件和系统内核。 我们这里使用第二条:yum -y upgrade ......

类别 :  默认(742)  |  浏览(3206)  |  评论(0)

centos 7 安装lamp

piaoling  2022-07-05 15:48:57

systemctl stop firewalld setenforce 0 yum -y install httpd systemctl start httpd.service systemctl enable httpd.service yum install php* -y --skip-broken systemctl restart httpd yum install mariadb-server mariadb -y systemctl start mariadb mysql_secure_installation systemctl enable mariadb  #设置开机启动 yum -y install php-mysql --skip-broken yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel systemctl restart httpd.service 启用https yum install mod_ssl ......

类别 :  默认(742)  |  浏览(2374)  |  评论(0)

docker MYSQL [Error] Operating system error number 22 in a file operation

piaoling  2020-02-20 16:58:09

共享文件夹F:/docker=>虚拟机/docker 需加--innodb-use-native-aio=0 完整命令: docker run -itd --name mysql -p 3307:3306 -v /docker/mysql/conf/conf.d:/etc/mysql/conf.d -v /docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root mysql --innodb-use-native-aio=0 ......

类别 :  默认(742)  |  浏览(6322)  |  评论(0)

解决docker容器存放目录磁盘空间满了问题

piaoling  2020-02-20 11:18:52

前言 docker所在服务器,运行了一段时间后,发现服务器磁盘目录快不够用了。通过du -h --max-depth=1 /逐级目录排查,发现/var/lib/docker目录文件过大。通过以下方法,解决该问题。 转移数据修改docker默认存储位置 有多种方式修改docker默认存储位置。 最好是在docker安装完后,第一时间修改docker默认存储位置为其他大目录或者磁盘中。规避迁移数据过程中造成的风险。 停止docker服务 systemctl stop docker 创建新的docker目录......

类别 :  默认(742)  |  浏览(5038)  |  评论(0)

脚本

piaoling  2018-10-29 11:16:20

Function gotoPosition()     MoveTo 225, 568     Delay 2428     LeftClick 1     MoveTo 199, 331     Delay 1648     LeftClick 1     Delay 1025     KeyDown "2", 1     Delay 91     KeyUp "2", 1     Delay 441     KeyDown "9", 1     Delay 58     KeyUp "9", 1     Delay 203     KeyDown "9", 1     Delay 54     KeyUp "9", 1    &......

类别 :  默认(742)  |  浏览(4698)  |  评论(0)

email content filter double mail send

piaoling  2018-02-27 16:59:39

add -o receive_override_options=no_address_mappings smtp inet n - - - - smtpd -o content_filter=spamassassin -o receive_override_options=no_address_mappings https://serverfault.com/questions/18707/postfix-send-double-mail-when-mail-is-forwarded Most likely you have a content filter and the always_bcc is being called both before and after the content filter. Customise the smtpd either before or after the content filter to include -o receive_override_options=no_address_mappings (Note that options in mas......

类别 :  默认(742)  |  浏览(7858)  |  评论(0)

阿里云 Ubuntu 支持 IPv6 的完整步骤

piaoling  2017-12-08 12:15:10

使用 Hurricane Electric Free IPv6 Tunnel Broker 来让阿里云服务器支持 IPv6 前几天提交新版 iOS App 被拒,原因是在 IPv6 only 的环境下无法使用。但阿里云的 ECS 并不支持 IPv6,只提供 IPv4 的 IP。好在 Hurricane Electric (下文简称 HE)提供免费的 IPv6 通道,基本够用了。 先说下 ECS 的基本环境: 操作系统:Ubuntu 前端服务器:Nginx 启用 IPv6 的主要有四步: 注册并创建 IPv6 通道 配置 ECS 使其支持 IPv6 ......

类别 :  默认(742)  |  浏览(8798)  |  评论(0)
  • Page:4/145  1442 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类