默认分类下的博客

linux图片压缩

piaoling  2023-08-10 17:48:37

命令行工具:jpegoptim和OptiPNG jpegoptim:它是一个优化/压缩JPEG文件而不降低其质量的工具。 OptiPNG:它是一个命令行工具,用于优化PNG图像到更小的尺寸,而不丢失任何信息 先安装EPEL仓库扩充软件库: yum install epel-release 1 .安装jpegoptim Ubuntu 安装 sudo apt-get install jpegoptim Centos yum install jpegoptim 2.安装OptiPNG yum install optipng sudo apt-get install optipng ========== 图片压缩=============== #安装epel源 yum -y install epel-release #......

类别 :  默认(739)  |  浏览(573)  |  评论(0)

Centos7环境下更新PHP7.3到PHP7.4

piaoling  2023-08-01 12:12:26

文章目录 安装 EPEL 源 安装 Remi 源 安装 yum-utils (yum-config-manager) 配置源:首先禁用当前的php源并启用需要安装的php7.4的源 执行Update更新PHP7.4 启动php7.4并设置开机自启动 近日在对个人网站例行维护时,发现WordPress 后台的站点健康提示推荐更新 PHP 7.4。 要在CentOS 7环境下将PHP 7.3更新到PHP 7.4,我们可以按照以下步骤进行操作: 安装 ......

类别 :  默认(739)  |  浏览(640)  |  评论(0)

centos7安装php8

piaoling  2023-07-24 15:50:54

步骤 卸载所有已安装的php yum remove -y php* 添加remi源(可能需要提前安装epel-release) yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm 此处若是无法下载 可用 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm 单独启用php80的源(没有yum-config-manager命令的话需要安装yum-utils) yum-config-manager --disable 'remi-php*' yum-config-manager --enable remi-php80 安装php及其拓展 yum inst......

类别 :  默认(739)  |  浏览(810)  |  评论(0)

MariaDB 11.0 CentOS repository list

piaoling  2023-07-05 14:32:58

# MariaDB 11.0 CentOS repository list - created 2023-07-05 06:23 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/11.0/centos/$releasever/$basearch baseurl = https://mirror.djvg.sg/mariadb/yum/11.0/centos/$releasever/$basearch module_hotfixes = 1 # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://mirror.djvg.sg/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck = 1 ......

类别 :  默认(739)  |  浏览(721)  |  评论(0)

MariaDB 数据库安装/升级操作

piaoling  2023-07-04 18:03:30

本文假设使用CenterOS 7,MariaDB安装版本为5.5,目标升级版本为MariaDB 10.1 使用MariaDB的YUM源 1. 在 /etc/yum.repos.d/ 下创建(编辑) MariaDB.repo 文件 vi /etc/yum.repos.d/MariaDB.repo 修改源文件为对应版本(这里使用的是MariaDB 10.1,如需其他版本,请使用源生成器) # MariaDB 10.1 CentOS repository list - created 2017-03-01 02:56 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 其他镜......

类别 :  默认(739)  |  浏览(769)  |  评论(0)

mariadb设置最大连接数

piaoling  2023-06-05 11:57:38

1. mariadb配置文件中 /etc/my.cnf 添加max_connections=3000 2. vim /usr/lib/systemd/system/mariadb.service [Service]新添加两行如下参数: LimitNOFILE=10000 LimitNPROC=10000 3.重新加载系统服务,并重启mariadb服务 systemctl --system daemon-reload systemctl restart mariadb.service 查看配置是否生效: show global variables like '%max_conn%'; ......

类别 :  默认(739)  |  浏览(867)  |  评论(0)

CentOS安装Nginx

piaoling  2023-04-06 14:22:42

一:安装依赖 yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel 二:下载Nginx版本 1.官网直接下载.tar.gz安装包,地址:nginx: download 2.使用wget命令下载 wget -c https://nginx.org/download/nginx-1.18.0.tar.gz 3.网盘下载 链接:https://pan.baidu.com/s/1C3wfnqAgE2QZgyRPd3zU-w 提取码:6x06 三:解压     tar -zxvf nginx-1.18.0.tar.gz     cd nginx-1.18.0 四:配置 1.不需要SSL ./configure --prefix=/usr/local/nginx 2.需要SSL ./configure --prefix=/usr/local/nginx --with-http_stub_status_module ......

类别 :  默认(739)  |  浏览(1020)  |  评论(0)

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 我选......

类别 :  默认(739)  |  浏览(1079)  |  评论(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.......

类别 :  默认(739)  |  浏览(884)  |  评论(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 ......

类别 :  默认(739)  |  浏览(1189)  |  评论(0)
  • Page:3/74  739 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类