作者psilotum (好小孩)
看板FreeBSD
标题Re: [问题] 使用ports方式安装 Apache MySQL PHP FTP
时间Thu Apr 2 14:31:31 2009
※ 引述《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