linux PHP 函数禁用

作者: 时间: 2022-11-22 评论: 暂无评论

disable_functions = passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv

putenv 框架使用

linux 检查服务性能,CPU,内存

作者: 时间: 2022-11-06 评论: 暂无评论

#检查cpu
ps aux|head -1;ps aux|sort -rn -k +3|head

检查内存

ps aux|head -1;ps aux|sort -rn -k +4|head

检查磁盘 读性能上限

time dd if=/dev/sdb of=/dev/null bs=4k

检查磁盘 写读性能上限

time dd if=/dev/vda1 of=/dev/null bs=4k

当前磁盘IO

iostat -d -k 1 10

apache ab 测试工具 post get 请求

作者: 时间: 2022-08-26 评论: 暂无评论
ab -c 100 -n 1000 -T text/html  -p E:\post.txt http://127.0.0.1:9501/notify/index
ab -n 10 -c 10 -p d:\test\querypay.txt -T application/x-www-form-urlencoded http://paycenter.gotrip8.com/querypay.aspx

querypay.txt 里面内容
a=1&b=2

ab -n 10 -c 10 "http://www.baidu.com?searchkey=111"

php 特殊字符处理

作者: 时间: 2022-08-10 评论: 暂无评论

1、addslashes() 使用反斜线引用字符串和stripslashes()反引用一个引用字符串

2、htmlentities():转化为html实体和html_entity_decode():把html实体转化为html标签

3、htmlspecialchars():对特定的字符转化为html实体和htmlspecialchars_decode():反之

记一次 PolarDb 8核,RDS 4 L2核性能测试

作者: 时间: 2022-08-10 评论: 暂无评论

ploardb 8c: 每秒平均插入记录数

每次执行10条 循环10000次
10w 220s 454 r/s
10w 194s 500 r/s

每次执行20条 循环5000次
10w 104s 961r/s

RDS 4C L2级磁盘 2000/月

每次执行10条 循环10000次

10w 206s 500 r/s

10w 243s 411 r/s

每次执行20条 循环5000次
10w 115 s 869r/s