顯示文章

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


主題 - ced_free

頁: [1]
1
BSD 討論版 / FreeBSD 登入訊息
« 於: 2012-08-21 17:32 »
請問各位前輩,我記得以前用Freebsd的時候一開始登入會出現登入訊息,訊息中會告訴你一些使用BSD的小技巧
8.2後登入都只會出現訊息版本跟固定訊息

請問有辦法把每次登入的訊息都改成BSD小技巧嗎?

另外請叫有一個小技巧是一個指令,就可以把Apache、mysql、php都裝好,請問這是什麼指令呢?

2
請問各位前輩該如何解決能按home、delete的方法呢?

我的系統是FreeBSD 8.2

不能按這兩個鍵實在是有點麻煩

在網路上找的方法也都不能用

請求前輩們協助解決,感謝感謝

3
Linux 討論版 / [問題]MySQL資料庫掛在NFS下
« 於: 2012-05-22 15:48 »
不好意思,請教各位前輩,小弟將MySQL的資料庫掛在NFS下就一直無法啟動MySQL,請問是不是需要修改SELinux的設定? 或是有麼方法能讓MySQL掛在NFS之下呢?
小弟上網找尋許多方法都無解,感謝各位前輩指導,感激再感激

my.cnf設定
代碼: [選擇]
[mysqld]
datadir=/home/mysql
socket=/var/lib/mysql/mysql.sock
User=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
id-file=/var/run/mysqld/mysqld.pid

/etc/fstab設定
代碼: [選擇]
192.168.1.12:centos     /home                   nfs     rw              0 0
修改MySQL資料庫掛載位置步驟如下:
1. 停止mysqld服務
# /etc/init.d/mysqld stop

2. 修改SELinux設定,使home可掛載在nfs下
# setsebool -P use_nfs_home_dirs 1

3. 掛載NFS
# mount -t nfs 192.168.1.12:centos /home

4. 建立mysql資料夾於/home下
# cd /home ; mkdir mysql

5. 修改資料夾擁有者
# chown mysql:mysql /home/mysql

6. 為確保權限無誤,再下一次指令
# chmod 755 /home/mysql

7. 複製原有資料庫內容至/home/mysql下
# cp -Ra /var/lib/mysql /home/msyql

8. 利用以下指令,初始化MySQL資料庫
# mysql_install_db --user=mysql --ldata=/home/mysql

9. 啟動MySQL
# /etc/init.d/mysqld start

出現錯誤:
代碼: [選擇]
120522 15:43:52 mysqld_safe Starting mysqld daemon with databases from /home/mysql
120522 15:43:52 [Warning] Can't create test file /home/mysql/ldap.lower-test
120522 15:43:52 [Warning] Can't create test file /home/mysql/ldap.lower-test
/usr/libexec/mysqld: Can't change dir to '/home/mysql/' (Errcode: 13)
120522 15:43:52 [ERROR] Aborting

120522 15:43:52 [Note] /usr/libexec/mysqld: Shutdown complete

120522 15:43:52 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

這個問題困擾了我兩天了,請求各位前輩協助解決此問題,感謝

4
Linux 討論版 / 請教如何關閉postfix open relay
« 於: 2012-03-05 16:11 »
我在 http://www.checkor.com/ 測試出了自己的mail Server有open relay的狀況
可是我不論怎麼修改設定都沒有辦法關閉open relay
請問各位前被,我到底是哪邊的設定出了問題,可否麻煩各位幫我檢查一下
叩謝,感激不盡
以下是我的設定內容

代碼: [選擇]
always_bcc = backup@chemical.com.tw
biff = no
bounce_queue_lifetime = 12h
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix
in_flow_delay = 1s
inet_interfaces = all
local_recipient_maps = proxy:mysql:/etc/postfix/mysql-localrecip.cf
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maximal_queue_lifetime = 1d
message_size_limit = 41943040
mydomain = chemical.com.tw
myhostname = mail.chemical.com.tw
mynetworks = 127.0.0.1, 192.168.1.10
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
notify_classes = resource, software
queue_directory = /var/spool/postfix
queue_run_delay = 5m
readme_directory = /usr/share/doc/postfix
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_client_connection_count_limit = 50

smtpd_client_restrictions = permit_sasl_authenticated   permit_mynetworks       reject_unauth_destination       reject_unknown_reverse_client_hostname  reject_rbl_client dnsbl.ahbl.org        reject_rbl_client dnsbl.njabl.org       reject_rbl_client dnsbl.sorbs.net       reject_rbl_client aspews.ext.sorbs.net  reject_rbl_client cbl.abuseat.org       reject_rbl_client mail2.518.com.tw      reject_rbl_client bl.spamcop.net        reject_rbl_client cblless.anti-spam.org.cn=127.0.8.5    check_client_access hash:/etc/postfix/client_check

smtpd_data_restrictions = reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_enforce_tls = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated,    permit_mynetworks,      reject_unknown_helo_hostname,   reject_non_fqdn_hostname,
smtpd_milters = unix:private/sid-filter
smtpd_recipient_limit = 50

smtpd_recipient_restrictions = permit_sasl_authenticated,       permit_mynetworks,      check_relay_domains,    reject_unauth_destination,      reject_non_fqdn_recipient,      reject_invalid_hostname,        reject_non_fqdn_hostname,       reject_non_fqdn_sender, reject_non_fqdn_recipient,      reject_unknown_sender_domain,   reject_unknown_recipient_domain,        reject_unauth_destination,      check_client_access hash:/etc/postfix/client_check,

smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated,  permit_mynetworks,      reject_unknown_sender_domain,   reject_unknown_client,  reject_non_fqdn_sender,
smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550

virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-aliases.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/vdomains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/vmailboxs.cf
virtual_uid_maps = static:125

頁: [1]