系统运维


php装第二个版本

<h3>改下面的php版本</h3> <h4>/etc/ansible/playbooks/lnmp/package/PHP-Other-Versions/task/PHP.yml这个文件里面也要把php7x改为对应的版本</h4> <pre><code>sudo ansible-playbook ansible-ops.yml --tags=PHP-Other -e &amp;quot;PHP_OtherVersions_data_dir=/data/php74&amp;quot; -e &amp;quot;PHP_OtherVersions_extend_dir=/data/php74/etc/php.d&amp;quot; -e &amp;quot;PHP_OtherVersions_version=7.4.14&amp;quot; -e &amp;quot;PHP_OtherVersions_conf_dir=/data/php74/etc&amp;quot; -e &amp;quot;PHP_OtherVersions_bin_dir=/data/php74/bin&amp;quot; -i 124.156.200.197:2020, --become</code></pre> <p>最后在做一个软连接就行</p>

页面列表

ITEM_HTML