顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - snack.shih

頁: [1]
2
找一下關於 GPT 的說明。超過 2TB 的硬碟需要使用 GPT 分割表。

感謝學長~

3
如題,小弟在一台IBM SERVER上裝了2.6.32-696.13.2.el6.i686 CentOS 6.9,並接上一台SCSI磁碟陣列櫃做RAID 5共6TB,但我在CentOS上面只看得到2199GB,想請問是不是非64位元cpu的Linux就抓不到超過2TB的磁碟?

4
Computer 討論版 / Re: IBM ServerRAID選項
« 於: 2017-09-14 08:28 »
抓一下原廠的 manual 看看?

結果manual好像沒有講到這個…,想做secure erase的原因是小弟本來想在server上面安裝esxi5.5或6.0,可是都會出現錯誤訊息沒辦法安裝,google的結果是有人建議對硬碟做secure erase,不過在還沒找到CTRL+A,我就用另一個方式解決問題了…。
然後…小弟有個很笨的問題請教…怎麼把圖po到發文內容…


5
Computer 討論版 / IBM ServerRAID選項
« 於: 2017-09-11 16:20 »
想請教各位學長~我手上有一台IBM X3650 M4的機器,也有外接一張RAID Card,現在想做Secure Erase,可是開機時沒有Ctrl+A的選項可以連我進入操作,只有Ctrl+H及Ctrl+Y,是不是我該在BIOS裡面把某個選項Enable嗎? ???

6
不曉得為什麼,上禮拜還不能下載vCenter Support Assistant Appliance 6.5.0,今天就可以了…。 ???

7
VMware vCenter,但話說很奇怪,上禮拜還不能下載,這禮拜又可以了…。

那一個產品呢?
有的下載是需要登入權限的

8
請問各位學長,小弟在下載VMware的時候,出現
You either are not entitled or do not have permissions to download this product. Check with your My VMware Super User, Procurement Contact or Administrator. If you recently purchased this product through VMware Store or through a third-party, try downloading later」的訊息。
我照著「https://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2070555」的說明找不到他說的「Hover over Accounts and select Users and Permissions.」,所以沒辦法新增或修改權限,請問有學長也遇過一樣的問題嗎?

9
請教您 try 成功的解法是...?
小弟的話 .. 是 .. 右鍵 -> 翻譯成中文

他說看原文很頭痛,而且是用 try 的,我只是好奇他 try 的結果 :)

最後try的結果是把信任網段放到下面去…
smtpd_recipient_restrictions =
                        reject_unlisted_sender,
                        permit_sasl_authenticated,
                        reject_sender_login_mismatch,
                        reject_unauth_destination,
                        check_policy_service unix:private/policy-spf,
                        permit_mynetworks,
                        reject_invalid_hostname,
                        check_client_access hash:/etc/postfix/rbl_whitelist,
                        permit_auth_destination,
                        reject_unknown_sender_domain,
                        reject_non_fqdn_recipient,
                        reject_unauth_pipelining,
                        check_relay_domain reject

10
http://www.postfix.org/SMTPD_ACCESS_README.html

原文…看到頭好痛…只好慢慢try,還好給我try成功…。

11
請問各位前輩,下列不知道是哪個順序錯誤,造成outlook不勾選「我的伺服器需要驗證」也可以外寄…,我有試著把reject_sender_login_mismatch移到最上面,但還是可以外寄…。

smtpd_recipient_restrictions =
                        reject_unlisted_sender,
                        permit_mynetworks,
                        permit_sasl_authenticated,
                        reject_sender_login_mismatch,
                        reject_invalid_hostname,
                        reject_unauth_destination,
                        check_policy_service unix:private/policy-spf
                        check_client_access hash:/etc/postfix/rbl_whitelist
                        permit_auth_destination,
                        reject_unknown_sender_domain,
                        reject_non_fqdn_recipient,
                        reject_unauth_pipelining,
                        check_relay_domain reject

12
Linux 討論版 / roundcubemail 篩選器無作用
« 於: 2016-10-18 12:59 »
小弟最近在CentOS 6.x上面安裝roundcubemail,參考了下面的網站,也修改了設定檔,但就是沒有發生作用,想請問各位大哥,還是哪些是我需要注意的?

http://dywang.csie.cyut.edu.tw/dywang/l ... ode86.html

13
各位先進好:
      小弟在安裝如題的套件時,出現以下狀況,可否麻煩各位前輩幫小弟解惑一下,謝謝...
[root@dns ~]# yum -y install cyrus-sasl-md5 cyrus-sasl-plain cyrus-sasl
Loaded plugins: fastestmirr.........................................以下省略

小弟的作業系統是CentOS 6.4  2.6.32-358.el6.x86_64



已解決...。

14
各位先進好:
      小弟在安裝如題的套件時,出現以下狀況,可否麻煩各位前輩幫小弟解惑一下,謝謝...
[root@dns ~]# yum -y install cyrus-sasl-md5 cyrus-sasl-plain cyrus-sasl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Package matching cyrus-sasl-2.1.23-13.el6.x86_64 already installed. Checking for update.
Resolving Dependencies
--> Running transaction check
---> Package cyrus-sasl-md5.x86_64 0:2.1.23-13.el6 will be installed
--> Processing Dependency: cyrus-sasl-lib = 2.1.23-13.el6 for package: cyrus-sasl-md5-2.1.23-13.el6.x86_64
---> Package cyrus-sasl-plain.x86_64 0:2.1.23-13.el6 will be installed
--> Running transaction check
---> Package cyrus-sasl-lib.i686 0:2.1.23-13.el6 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libresolv.so.2 for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6 for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libdl.so.2 for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libdb-4.7.so for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Processing Dependency: libcrypt.so.1 for package: cyrus-sasl-lib-2.1.23-13.el6.i686
--> Running transaction check
---> Package db4.i686 0:4.7.25-16.el6 will be installed
---> Package glibc.i686 0:2.12-1.47.el6_2.12 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.47.el6_2.12.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.47.el6_2.12.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
--> Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for cyrus-sasl-lib which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of cyrus-sasl-lib of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude cyrus-sasl-lib.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of cyrus-sasl-lib installed, but
            yum can only see an upgrade for one of those arcitectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of cyrus-sasl-lib installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: cyrus-sasl-lib-2.1.23-13.el6.i686 != cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64
Error: Protected multilib versions: db4-4.7.25-16.el6.i686 != db4-4.7.25-17.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

小弟的作業系統是CentOS 6.4  2.6.32-358.el6.x86_64

15
想請教各位前輩,我用VB.NET加SQL資料庫封裝打包。是不是用戶端一定要安裝SQLServer才能正常執行?  ???

沒用過 .NET 的東西, 不過這種問題不是只要試一下馬上就能有答案嗎!?


說得也是,抱歉,太猴急了點,沒想到這點...  :P

16
想請教各位前輩,我用VB.NET加SQL資料庫封裝打包。是不是用戶端一定要安裝SQLServer才能正常執行?  ???

17
我試了兩、三天還是解決不了問題,結果我還是用了最簡單的Reader.Read去解決問題,不過還是很謝謝洋蔥叔叔的建議。  ;D

18
我在參數前面加了小老鼠,可是結果還是一樣不行。  :'(       
後來我把中間那段程式改成<>,居然就會過了...。但GetString + GetOrdinal 不就是為了要取出正確資料嗎?實際上取出的資料也是資料庫裡正確的資料啊!!
還是我把GetString + GetOrdinal 的用法搞錯了?  ???

            MsgBox(SqlReader.GetString(SqlReader.GetOrdinal("帳號")))  '取出正確帳號資料
            MsgBox(SqlReader.GetString(SqlReader.GetOrdinal("密碼")))  '取出正確密碼資料
 
            If TxtID.Text <> SqlReader.GetString(SqlReader.GetOrdinal("帳號")) Then
                If TxtPwd.Text <> SqlReader.GetString(SqlReader.GetOrdinal("密碼")) Then
                    SqlReader.Close()
                    MsgBox("登入成功。", MsgBoxStyle.Information, "系統訊息")
                End If
            Else
                FailCount += 1
            End If

19
.NET程式設計討論區 / VB.Net Reader.GetOrdinal
« 於: 2009-12-30 17:14 »
想請教高手大大,我以 SqlDataReader.GetOrdinal 抓取到資料庫的資料與TextBox比對,明明輸入對的帳號及密碼,但不知為何程式卻判斷我輸入的與資料庫裡的資料不同,想請教我哪裡寫錯了?

Public Class Login
    Dim sConn As SqlConnection
    Dim conn As String = "server=localhost;database=Product;uid=sa;pwd='123'"
    Dim FailCount As Integer = 0

    Private Sub CmdEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdEnter.Click
        Dim sConn = New SqlConnection(conn)
        sConn.Open()

        Dim SqlLogin As String
        Dim SqlReader As SqlDataReader
        Dim SqlLoginCmd As SqlCommand

        SqlLogin = "Select 帳號,密碼 From Login Where 帳號=帳號"
        SqlLoginCmd = New SqlCommand(SqlLogin, sConn)
        SqlLoginCmd.Parameters.AddWithValue("帳號", TxtID.Text)
        SqlReader = SqlLoginCmd.ExecuteReader()

        If SqlReader.Read() Then
            MsgBox(SqlReader.GetString(SqlReader.GetOrdinal("密碼")))
            If SqlReader.GetString(SqlReader.GetOrdinal("密碼")) = TxtPwd.Text Then
                TxtID.Text = SqlReader.GetString(SqlReader.GetOrdinal("帳號"))
                SqlReader.Close()
            Else
                FailCount += 1
            End If
        Else
            FailCount += 1
        End If

        If FailCount > 0 And FailCount <= 3 Then
            MsgBox("第" & FailCount.ToString & "次輸入錯誤", MsgBoxStyle.Exclamation, "系統訊息。")
            If FailCount >= 3 Then
                MsgBox("輸入錯誤次數已達三次,程式將自行關閉。", MsgBoxStyle.Exclamation, "系統訊息。")
                End
            End If
        End If
    End Sub
End Class

20
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 16:34 »
上頭兩三頁的文字就只提到你寫的 postfix 的那幾個設定而已?

如果你認為是的話, 建議你放棄吧.
open relay? 你應該也不用知道, 設定之後, 通常不出一星期就會被 hinet 把你的 port 25 整個都擋掉.
小弟是想試試open relay方式是不是可以把信寄出去,當然不會以open relay做永久的測試...
謝謝學長的指教。

21
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 15:51 »
你有先安裝sasl smtp auth需要的元件嗎?
小弟看了一下
rpm -qa | grep cyrus-sasl
cyrus-sasl-2.1.21-18.4
cyrus-sasl-saslauthd-2.1.21-18.4

22
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 15:11 »
我不清楚你看的是那份教學文件, 不過鳥哥網站上頭寫的可不單單只有那兩行.
http://linux.vbird.org/linux_server/0380mail.php#adv_auth

除了原本的
smtpd_recipient_restrictions = permit_sasl_authenticated
smtpd_sasl_auth_enable = yes
小弟後來加了兩行
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

但似乎還是一樣...。
在telnet localhost 25不會往下跑...。
想請教學長,如果是open relay,那要在哪些設定做變更?
謝謝學長指教。

SUSE Linux Enterprise 10

23
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 14:56 »
auth smtp 怎麼設定的?
基本上, 應該不只你說的那兩個設定值.
小弟是參考鳥哥、柏青哥教學只設定身份驗證的設定值,不知道是否一定要再多加幾個條件才可relay?
小弟在telnet localhost 25驗證的時候,出現下面訊息:
Trying 127.0.0.1...
Connected to localhost.
Ecspe character is '^]'.

跑到這就沒再往下了...。
還請學長指教。

24
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 14:47 »
家用的固定ip就是動態ip的一種,免費信箱有些是拒收這樣的來源的信,有些是擺在垃圾信裡面,也沒有辦法申請反解,很多信箱也寄不過去,自己玩玩可以,要上線平常拿來用,還是算了吧
嗯嗯,我了解學長的意思了,但小弟是正在學習怎麼樣才可以讓外部不同網段的Outlook可以藉由家裡的postfix relay到gmail或yahoo這些免費信箱~

謝謝學長指教。 :D

25
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 14:40 »
你家裡所謂的固定ip是指企業形的固定ip還是家用型的固定ip?
家用型的固定ip的話,就不用花時間弄mail server了
呃...,家裡是家用型的固定ip,想請教學長,如果是家用型的固定ip就不用花時間弄mail server的意思是?
請學長指教。 :-\

26
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 13:59 »

你 client ip 來源不固定, 撥接 dialup 這類來源無法針對特定 ip 允許 relay

考慮配置驗證 smtp 來提供 relay 即可
謝謝學長指教。
小弟在更改smtp驗證過後,仍無法relay。
SMTP驗證設定:
smtpd_recipient_restrictions = permit_sasl_authenticated
smtpd_sasl_auth_enable = yes

以telnet localhost 25做測試時卻只出現以下訊息
Trying 127.0.0.1...
Connected to localhost.
Ecspe character is '^]'.
到這裡就沒再往下了,不知這裡是否應該到localhost做設定? ???


27
Linux 討論版 / 回覆: postfix無法relay
« 於: 2009-06-18 13:33 »

你的 client 在哪?

您給的資訊是 111-111-111-111.dynamic.hinet.net[111.111.111.111],但是你只有開放 private ip 這類內部網段而已

你有必要把環境說清楚。

postfix是我家裡申請的固定ip,而我是想從家裡以外的網段由家裡的postfix relay到類似gmail.com這些的免費郵件信箱。
還請學長指教。

28
Linux 討論版 / postfix無法relay
« 於: 2009-06-18 11:25 »
請教各位學長,小弟設定好postfix後,在本機寄信、收信皆正常,在不同網域收信也正常,但寄信卻出現問題,以下是小弟main.cf的設定以及log,請各位學長指教。

main.cf

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
mydomain = 123.idv.tw
myorigin = $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.1.0/24, 127.0.0.0/8
debug_peer_level = 2
debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix-doc/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix-doc/samples
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = mail.123.idv.tw
delay_warning_time = 1h
message_strip_characters = \0
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain,$mydomain
defer_transports =
mynetworks_style = host
disable_dns_lookups = no
relayhost = [mail.123.idv.tw]
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000

log

Jun 18 10:17:25 xxx postfix/postfix-script: starting the Postfix mail system
Jun 18 10:17:25 xxx postfix/master[4052]: daemon started -- version 2.2.9, configuration /etc/postfix
Jun 18 11:03:58 xxx popper[4452]: (v4.0.8) Servicing request from "111-111-111-111.dynamic.hinet.net" at 111.111.11.111 [pop_init.c:1239]
Jun 18 11:03:59 xxx popper[4452]: Stats: xxx 0 0 0 0 111-111-111-111.dynamic.hinet.net 111.111.111.11 [pop_updt.c:301]
Jun 18 11:04:02 xxx postfix/smtpd[4453]: connect from 111-111-111-111.dynamic.hinet.net[111.111.111.111]
Jun 18 11:04:02 xxx postfix/smtpd[4453]: NOQUEUE: reject: RCPT from 111-111-111-111.dynamic.hinet.net[111.111.111.111]: 554 <123@gmail.com>: Relay access denied; from=<123@123.idv.tw> to=<123@gmail.com> proto=ESMTP helo=<speed>
Jun 18 11:04:05 xxx postfix/smtpd[4453]: disconnect from 111-111-111-111.dynamic.hinet.net[111.111.111.111]
Jun 18 11:07:25 xxx postfix/anvil[4455]: statistics: max connection rate 1/60s for (smtp:111.111.111.111) at Jun 18 11:04:02
Jun 18 11:07:25 xxx postfix/anvil[4455]: statistics: max connection count 1 for (smtp:111.111.111.111) at Jun 18 11:04:02
Jun 18 11:07:25 xxx postfix/anvil[4455]: statistics: max cache size 1 at Jun 18 11:04:02

29
我想請教各位,最近我在Linux上灌了Real SQL Server,但卻沒辦法使用,不知道是否有人能試灌並告訴小弟他的安裝流程及使用...。

頁: [1]