我正在尝试使用sed命令修改php.ini,但由于某些原因它无法正常工作
sed -i 's/disable_functions = /disable_functions = system, show_source, symlink, dl, shell_exec, passthru,escapeshellarg,escapeshellcmd/g' /etc/php.ini
disable_functions
行在php.ini
disable_functions =
你能说出什么是错的
答案 0 :(得分:1)
问题在于/etc/php.ini
=
请将=
之后的空格从sed
删除为
$ sed -i 's/disable_functions =/disable_functions = system, show_source, symlink, dl, shell_exec, passthru,escapeshellarg,escapeshellcmd/g'