在我的 apache www 文件夹中(/var/www在 ubuntu 10.10 上)我有:
mydir -> /home/user/mydir
Run Code Online (Sandbox Code Playgroud)
(我创建的ln -s)
现在,如果我想查看mydir来自网络的文件列表,我必须给 apache 指令FollowSymLinks,对吗?
但是我把它放在哪里呢?在.htaccess文件中?在哪里?试了很多方法还是没看懂。。。
这是我的/etc/apache2/sites-enabled/000-default文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks Indexes
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: …Run Code Online (Sandbox Code Playgroud) 我喜欢保存我在命令行上所做的一切,例如当我升级某些东西并想回读升级的过程等时。
通常使用 Mac OSX 和终端,您可以根据需要向后滚动,并使用 Cmd-S 保存。但是当我使用 gnu screen 在 SSH 上时,我无法直接从终端回滚。
如何将屏幕会话中发生的所有内容保存到磁盘?也许默认情况下(每个会话都会自动创建一个文件到磁盘......)
谢谢!
在 Bash 中,我想将 stdout 重定向到一个文件 (>> mylog.txt),但还要在屏幕上看到 stdout 输出..
我怎样才能用 bash 做到这一点?
我正在尝试在 Eclipse 中安装 eUML,但出现此错误:
OK
Cannot complete the install because one or more required items could not be found.
Software currently installed: eUML2 Free Edition 3.6.1.20110420 (com.soyatec.euml2.free.feature.group 3.6.1.20110420)
Missing requirement: Diagram tools Plugin 3.6.1.20110420 (com.soyatec.diagrams 3.6.1.20110420) requires 'bundle org.apache.batik.dom.svg 1.6.0' but it could not be found
Cannot satisfy dependency:
From: eUML2 Free Edition 3.6.1.20110420 (com.soyatec.euml2.free.feature.group 3.6.1.20110420)
To: com.soyatec.diagrams [3.6.1.20110420]
Run Code Online (Sandbox Code Playgroud)
似乎org.apache.batik.dom.svg丢失了,但我找不到包含它的更新站点。我该如何解决这个错误?(我在 OSX 10.6 上运行最新的 Helios)。
可以用tar吗?我必须写一个 bash 脚本吗?