看板 FreeBSD 關於我們 聯絡資訊
※ 引述《xunlu (xunlu)》之銘言: : ※ 引述《xunlu (xunlu)》之銘言: : : ============================== : : 更正重開機後可以執行囉~~︿︿ : : 不過有錯誤訊息 : : #1045 - Access denied for user 'root'@'localhost' (using password: YES) : : 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 : : 可以勞煩各位指導一下嗎 : : 謝謝!! : 自問自答 : 參考下面網址 解決 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 : http://www.wretch.cc/blog/zgod/2288269 : 實際操作: : # /usr/ports/security/php5-mcrypt : # make install : # reboot : 參考下面網址 解決 #1045 - Access denied for user 'root'@'localhost' (using password: YES) : http://phorum.study-area.org/index.php?PHPSESSID=ef50ca58ad8b5df2b13737b64fe71392&/topic,53080.0.html : 實際操做: : # /usr/local/etc/rc.d/mysql-server stop : # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & : # mysql -u root mysql : mysql> UPDATE user SET Password=PASSWORD('xxxxxxxxxx') where USER='root'; : mysql> FLUSH PRIVILEGES; : mysql> \q : # /usr/local/etc/rc.d/mysql-server start : # mysql -uroot -p : 輸入密碼後出現 : Welcome to the MySQL monitor. Commands end with ; or \g. : Your MySQL connection id is 2 : Server version: 5.1.28-rc-log FreeBSD port: mysql-server-5.1.28_1 : Type 'help;' or '\h' for help. Type '\c' to clear the buffer. : mysql> \q : 這樣子在到網phpmyadmin網頁輸入root即密碼即可正常 : 請問以上步驟有什麼缺失嗎? : 因為我只會照做看不懂意思@@~ : 還有就是請問當這幾項服務(FREEBSD系統 apache mysql proftp)起來後 : 有哪些安全性程序需要設定了 : 目前有設定 : freebsd 密碼 : MYSQL 密碼 : 其它都還沒動 : 請各位前輩指導一下囉 : 不想剛灌好就被駭掉了> < 看一下 handbook 吧 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/security.html 你有很急著把服務弄起來嗎?如果只是想試試看,不如多花一點時間把 handbook 看一看,freebsd 的文件都寫的很好。 1. 你可以訂閱安全性通知的郵遞論壇 http://lists.freebsd.org/mailman/listinfo/freebsd-security-notifications 2. 用 ports 安裝的第三方軟體可以透過 portaudit 定期檢查是否有 安全上的問題 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-overview.html 3. 設定防火牆,目前有 ipfw, ipf, pf 可以使用 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html 4. 不需要的服務不要安裝 5. 如果要更高一點的安全性,可以考慮把服務裝在 jail 裡面 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.231.58