ubuntu apache mpm preforkTOP
sudo nano /etc/apache2/mods-available/mpm_prefork.conf StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 256 # 最大进程数 MaxRequestWorkers 256 # 关键:提高并发上限 MaxConnectionsPerChild 3000 ......
php根据IP获取地理位置TOP
http://www.phpandstuff.com/articles/geoip-country-lookup-with-php How to get the surfers country using PHP? Most coders need to tackle this problem sooner or later. There are several options out there. There is even a package called GeoIP Location. However, since this does not come with most default installations, it may not be your best choice. A company called Maxmind specializes in professional GeoIP solutions. However, when you dig through their website, you can find that they also provide some free databases and free code. I will show you how to use this free stuff in a portable......
centos7 通过源https://mirror.webtatic.com安装了php7.2,现在需要换成另一个源remi,安装php7.4
第一步:彻底卸载 webtatic 源的 PHP 7.2 sudo systemctl stop php-fpm sudo yum remove php* ls -l /etc/yum.repos.d/ | grep webtatic sudo mkdir /root/repo-backup sudo mv /etc/yum.repos.d/webtatic*.repo /root/repo-backup/ sudo yum clean all 第二步:配置 Remi 源并安装 PHP 7.4 sudo yum install -y epel-release sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum install -y yum-utils sudo yum-config-manager --enable remi-php74 yum -y install php-php-devel php-php.x86_64 php-php-cli.x86_64 php-php-common.x86_64 php-php-gd.x86_64 php-php-ldap.x86_64 php-......
PHP 7.2 升级到php7.4
把 PHP 从 webtatic 源切换到 Remi 源,不能直接通过 yum 切换,需要先彻底卸载 webtatic 源的旧版 PHP,再安装 Remi 源的新版 PHP。 第一步:彻底卸载 webtatic 源的 PHP 7.2 停止正在运行的 PHP 服务 bash sudo systemctl stop php-fpm 完全移除旧的 PHP 及相关包 为了彻底清除,建议使用通配符卸载所有与 webtatic 相关的 PHP 包。 bash sudo yum remove php* 移除 webtatic 仓库文件(可选,但推荐) ......
爬虫ip列表,建议封禁
106.83.129.190 116.171.246.71 36.161.143.192 79.206.193.56 119.60.143.224 114.34.209.213 182.105.192.203 116.212.141.60 106.7.248.75 27.47.170.133 47.108.248.46 106.55.253.35 180.125.242.145 159.75.169.180 211.100.5.241 121.225.54.96 180.120.176.192 112.54.47.193 223.13.162.77 59.37.82.32 123.146.82.72 125.107.200.105 42.239.8.200 115.190.29.186 166.88.141.59 222.182.60.144 113.56.153.80 122.243.167.172 220.197.228.76 111.1.105.97 172.104.187.178 14.29.239.243 36.147.78.166 115.201.220.130 183.247.11.107 223.198.119.104 218.87.153.237 183.162.167.194 167.179.57.113 116.236.230.122 60.204.234.23......
PHP Fatal error: Possible integer overflow in memory allocation (4294925566 * 32 32) SAP rfc 整数溢出
PHP Fatal error: Possible integer overflow in memory allocation (4294925566 * 32 + 32) SAP rfc 整数溢出问题解决方案: 此问题是获取sap function时偶尔发生,获取function时会查找function的参数数量,当出现以下情况时,会导致返回的参数数量异常大,导致整数溢出,这和php自身内存配置没有任何关系: ✅ 常见原因 原因 说明 1. 函数元数据损坏或未正确加载 SAP 系统中该 RFC 函数定义异常,或缓存未刷新 2. 使用了错误或过期的 function_desc_handle ......
mariadb 配置建议
innodb_buffer_pool_size 物理内存的 50%-80% innodb_buffer_pool_instances (innodb_buffer_pool_size(G)/1) 每个实例建议至少 1GB innodb_file_per_table=ON slow_query_log=ON slow_query_log_file = /var/lib/mysql/mysql-slow.log long_query_time=3 max_allowed_packet=64M query_cache_size=100M sort_buffer_size=40M read_buffer_size=40M 在 50-server.cnf或my.ini 文件加上: innodb_strict_mode=0 ......
ubuntu安装lamp完整版
1.1、安装与运行Apache服务器,版本:Apache/2.4.29 (Ubuntu) #查看需要更新的软件包 sudo apt update #如果需要,可使用以下命令,升级软件包 sudo apt upgrade #如果需要,可使用以下命令,卸载过时的软件包 sudo apt autoremove #安装Apache服务器 sudo apt install apache2 #安装完成后,查看Apache服务器的版本 apache2 -version #显示:Server version: Apache/2.4.29 (Ubuntu)等字样 sudo a2enmod rewrite 命令启用rewrite模块 sudo a2enmod ssl 启用https sudo a2enmod headers 启用header 配置https服务 启用ssl模块 ......
- Page:1/147 1467 Blogs
| 周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(767)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)