Bash 在脚本中编辑phpMyAdmin
我需要在shell脚本中更改phpMyAdmin.conf 需要在我的主机ip中更改所有127.0.0.1 ip 我的想法是: sed-i's/127.0.0.1/192.168.33.22/g“ /etc/httpd/conf.d/phpMyAdmin.confBash 在脚本中编辑phpMyAdmin,bash,sed,Bash,Sed,我需要在shell脚本中更改phpMyAdmin.conf 需要在我的主机ip中更改所有127.0.0.1 ip 我的想法是: sed-i's/127.0.0.1/192.168.33.22/g“ /etc/httpd/conf.d/phpMyAdmin.conf 但这行不通,有什么想法吗?所写的命令不正确: 可能粘贴错误。这应该可以: sed -i 's/127.0.0.1/192.168.33.22/g' /etc/httpd/conf.d/phpMyAdmin.conf 为什么不起作用?
但这行不通,有什么想法吗?所写的命令不正确: 可能粘贴错误。这应该可以:
sed -i 's/127.0.0.1/192.168.33.22/g' /etc/httpd/conf.d/phpMyAdmin.conf
为什么不起作用?结果是什么/你看到的错误是什么?
sed -i 's/127.0.0.1/192.168.33.22/g' /etc/httpd/conf.d/phpMyAdmin.conf