我按照以下教程:http://davidtsadler.com/archives/2012/06/03/how-to-install-magento-on-ubuntu/
在某些时候它告诉我执行以下命令:
sudo bash -c "cat >> /etc/apache2/sites-available/magento-store.com <<EOF
<VirtualHost *:80>
ServerName localhost.magento-store.com
ServerAlias www.localhost.magento-store.com
DocumentRoot /home/dev/public_html/magento-store.com/public
LogLevel warn
ErrorLog /home/dev/public_html/magento-store.com/log/error.log
CustomLog /home/dev/public_html/magento-store.com/log/access.log combined
</VirtualHost>
EOF"
Run Code Online (Sandbox Code Playgroud)
这个命令做了什么,以及如何取消它?
我重新启动计算机,似乎它仍在运行.我看着.bashrc和.profile,但我没有里面找到它.
dev*_*ull 46
引用自man bash:
-c string If the -c option is present, then commands are read from
string. If there are arguments after the string, they are
assigned to the positional parameters, starting with $0.
Run Code Online (Sandbox Code Playgroud)
您引用的命令会将heredoc中的文本(即标记中的文本)附加VirtualHost到文件中/etc/apache2/sites-available/magento-store.com.
| 归档时间: |
|
| 查看次数: |
45325 次 |
| 最近记录: |