不要先运行插件安装命令,然后再运行激活命令:
sudo for dir in /var/www/html/*/; do cd "$dir" && wp plugin install elementor anywhere-elementor wordpress-seo wordfence contact-form-7; done
sudo for dir in /var/www/html/*/; do cd "$dir" && wp plugin activate elementor anywhere-elementor wordpress-seo wordfence contact-form-7; done
可以将安装和激活结合到一个命令中吗?