./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr’ make: *** [ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1 更改编译代码方式: cd FFmpeg-n5.1.2/libavcodec/x86/ vim mathops.h 定位到125 先删除125至最后一行,然后添加新的内容 // avoid +32 for shift optimization (gcc should do that …) #define NEG_SSR32 NEG_SSR32 static inline int32_t NEG_SSR32( int32_t a, int8_t s){ if (__builtin_constant_p(s)) __asm__ (“sarl %1, %0\n\t” : “+r” (a) : “i” (-s &… Continue reading [ffbuild/common.mak:81: libavformat/adtsenc.o] Error 1
wordpress-update
使用root进入mysql后台执行,xx.xxx.xxx.xx:800表示原地址,xx.xxx.xxx.xx表示新地址 mysql> UPDATE wp_options SET option_value = replace(option_value, ‘xx.xxx.xxx.xx:800′,’xx.xxx.xxx.xx’); Query OK, 3 rows affected (0.13 sec) Rows matched: 160 Changed: 3 Warnings: 0 mysql> UPDATE wp_posts SET post_content = replace(post_content, ‘xx.xxx.xxx.xx:800′,’xx.xxx.xxx.xx’); Query OK, 267 rows affected (0.13 sec) Rows matched: 457 Changed: 267 Warnings: 0 mysql> UPDATE wp_comments SET comment_content = replace(comment_content, ‘xx.xxx.xxx.xx:800′,’xx.xxx.xxx.xx’); Query OK,… Continue reading wordpress-update
如何在WordPress中上传多种安装包文件
打开WordPress后台,进入“外观”->“主题文件编辑器”。 在右侧选择functions.php文件进行编辑。 在functions.php文件末尾添加以下代码: 步骤一:这段代码将允许上传以下文件类型: function add_custom_mime_types($mimes) { // Windows $mimes[‘exe’] = ‘application/x-msdownload’; $mimes[‘msi’] = ‘application/x-msi’; // Linux $mimes[‘deb’] = ‘application/vnd.debian.binary-package’; $mimes[‘rpm’] = ‘application/x-rpm’; return $mimes; } add_filter(‘upload_mimes’, ‘add_custom_mime_types’); Linux:.deb 和 .rpm 步骤二:增加文件上传大小限制 由于安装包文件通常较大,我们需要确保WordPress的文件上传大小限制足够大。以下是几种方法来增加文件上传大小限制: 方法:修改php.ini文件 如果您有服务器的控制权限,可以修改php.ini文件: upload_max_filesize = 50M post_max_size = 50M 步骤三:上传安装包文件 完成上述步骤后,您可以开始在WordPress中上传安装包文件了
systemctl status frps
frp_0.31.2_linux_386-linux.tar systemctl status frps ● frps.service – Frp Server Service Loaded: loaded (/etc/systemd/system/frps.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2024-08-25 20:06:04 CST; 1 day 20h ago Main PID: 667 (frps) Tasks: 4 (limit: 2706) Memory: 17.1M CGroup: /system.slice/frps.service └─667 /usr/local/frp_0.31.2_linux_386/frps -c /usr/local/frp_0.31.2_linux_386/frps.ini Aug 27 16:14:43 iZ8vb59gsqaa2gjbi6n8g6Z frps[667]: 2024/08/27 16:14:43 [I] [proxy.go:92] [bcb008994eeb125b]… Continue reading systemctl status frps
frps
#这是ECS服务器端专用配置 [common] bin_addr = 0.0.0.0 bind_port = 7000 token = 52010 vhost_http_port = 800 vhost_https_port = 443 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = admin enable_prometheus = true [web-http] listen_port=8080 log_file = /var/log/frps.log log_level = info log_max_days = 3