重启!

zblog2年前zblog问题解答63992

重启mysql 和 php


service mysqld restart 

service php-fpm restart



systemctl restart mysqld

systemctl restart php-fpm


重启linux


reboot



文件属性:

ls -l nginx.conf # 查看权限

chmod 444 nginx.conf # 修改权限为 444 只读

ls -l nginx.conf # 再次查看权限

chattr +i nginx.conf # 将文件设置为不可变 (设置文件属性)

lsattr nginx.conf # 查看文件属性 

chattr -i nginx.conf # 移除不可变属性 (就可以修改了)


php 禁用函数


touch  
chmod 
copy

image.png

php禁用压缩  禁用类

image.png

配置文件 

disable_classes = "ZipArchive"


mysql恢复数据

/www/server/mysql/bin/mysqlbinlog /www/server/data/mysql-bin.000110 > /www/bug_fix/output0001.sql

(MySQL read_log_event(): 'Found invalid event in binary log' 错误参考https://blog.csdn.net/leshami/article/details/41962073)


image.pngimage.pngimage.png


# 将文件夹 和下面的php 设置为不可变 (设置文件属性)

chattr +i /www/wwwroot/www.gongshi5.com/data/admin

find "/www/wwwroot/www.gongshi5.com/data/admin" -type f -name "*.php" -exec chattr +i {} \;

相关文章

# php 字符串 数组替换 批量替换

# php 字符串 数组替换 $arr = array("111" => "999"...

ad.php文件删除不掉,linux处理

1、   lsof | grep ad.php 如果文件正在被某个进程使用,那么它可能无法被删除。你可以使用 lsof 或 fuser&nb...

error_reporting(0); 和 set_time_limit(0); 啥意思 关闭所有错误报告+php没有时间限制

`error_reporting(0);` 和 `set_time_limit(0);` 是 PHP 中的两个函数调用,它们分别用于控制错误报告和脚本...

常用linux命令

sudo find /www/wwwroot/www.xxxxxxxcom/tupian/ -type f -exec chown&...

正则表达式的替换的花招

1 $url = preg_replace_callback("|{&([a-zA-Z0-9]+)\=%|", "UrlRule:...

输入框按回车自动搜索,在输入框中按下回车键时执行js函数,阻止默认的表单form搜索,你可以使用 JavaScript 来监听键盘事件并阻止默认的表单提交行为。

输入框按回车自动搜索,在输入框中按下回车键时执行js函数,阻止默认的表单form搜索,你可以使用 JavaScript 来监听键盘事件并阻止默认的表单提交行为。 document...