後來GOOGLE了一下,終於找到解決的方法 。
# yum groupremove "Virtualization"
# yum remove libvirt參考來源:
# reboot
# yum groupremove "Virtualization"
# yum remove libvirt參考來源:
# reboot
# xe vdi-list uuid=VDIUUID params=allAnd you can see vhd-parent:(if you had ever did the snapshot or something like that.)
or
# xe vdi-list name-labe=$VDI_NAME params=all
# xe vdi-list
# xe vdi-list name-label="base copy"2.find the path.
output:
uuid ( RO) : $UUID
name-label ( RW): base copy
name-description ( RW):
sr-uuid ( RO): $STORAGE_UUID
virtual-size ( RO): 386547056640
sharable ( RO): false
read-only ( RO): true
# lvdisplay|grep "$UUID"output:3.remove it and rescan the storage.
LV Name $PATH
# lvremove -f $PATHMy space is back and i hope it works out well for you !
# xe sr-scan uuid=$STORAGE_UUID
# vi /etc/dovecot/dovecot.conf如果沒有啟用SSL加密,記得要關閉
protocols = pop3 imap
#vi /etc/dovecot/conf.d/10-ssl.conf非常關鍵的mail_location,一直卡在這邊
ssl = no
#vi /etc/dovecot/conf.d/10-mail.conf修改好後記得重新啟動服務
mail_location = maildir:/var/spool/mail/%u
#/etc/init.d/dovecot restart最後最最最重要的步驟在這
#chmod 600 /var/mail/foo參考來源:
foo 為使用者帳號
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
另外紀錄一些我覺得比較特別的應用,符合某特定來源
RewriteEngine onRewriteCond %{REMOTE_ADDR} ^192\.168\.1\.168$ [OR] RewriteCond %{REMOTE_ADDR} ^172\.16\.$ [OR] RewriteCond %{REMOTE_ADDR} ^10\.$ [OR]RewriteRule .......
HTTP跟HTTPS下都能運作
<VirtualHost *:80> RewriteEngine on</VirtualHost > <VirtualHost *:443>RewriteCond ....RewriteRule .....RewriteEngine on</VirtualHost >RewriteCond ....RewriteRule ....
其實我主要是要紀錄一下如何在HTTP跟HTTPS下運作,其他技術文件網路上超級多的了!
參考來源:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
http://www.widexl.com/tutorials/mod_rewrite.html
http://www.whoopis.com/howtos/apache-rewrite.html
http://stackoverflow.com/questions/22221203/apache2-rewrite-rule-not-working-remote-address
Step 1: Configure Atomicorp Repository
(as user root, only once)
wget -q -O - http://www.atomicorp.com/installers/atomic |shStep 2: Quick-Install OpenVAS
(as user root, only once)
yum upgrade yum install openvas openvas-setupStep 3: Quick-Start OpenVAS
( nothing to do, all is up and running directly after installation )Step 4: Log into OpenVAS with user created in the step 2
Open https://localhost:9392/.
Error: rsync failed. Your NVT collection might be broken now.
後來爬了一下討論,才發現原來他需要使用873 port 更新!
一切又回到當初的單純美好簡單!
對了,當初裝好時有碰到掃描直接完成。
根據log 紀錄來看是出現掃描主機失敗,後來把selinux關閉後就正常了。XD
參考來源:
[Openvas-discuss] can not set up openvas + Centos 6.5
#vi /etc/exports
/tmp 192.168.1.3(rw)
#start nfs service
#mount -t nfs 192.168.1.2:/tmp /tmp可是卻出現錯誤訊息: rsync failed to set times on
#測試同步
#rsync -av /tmp/ /tmp/
no_root_squash
#vi /etc/exports /tmp 192.168.1.3(rw,no_root_squash) #restart NFS
問題就順利的解決了!
事情是這樣的,有一台跑著軟體raid的主機,無預警的重開機之後出現錯誤!
接著便無法順利掛載使用,查看錯誤訊息為
mdadm md device /dev/md0 does not appear active
後來爬文爬了許久,試了許多步驟發現都沒用,直到看到這篇
# mdadm -R /dev/md0 重新mount 之後,東西都回來了,真是太感動了!