日期:2012-02-11 17:02:00 来源:本站整理
Fedora 15 安装 Nginx (PHP-FPM)+Mysql+PHP Web服务[服务器安全]
本文“Fedora 15 安装 Nginx (PHP-FPM)+Mysql+PHP Web服务[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
Nginx是一个免费、开源、高性能的HTTP服务器. nginx以安定性,丰富的功效模块,简单的配置,资源低损耗.本教程演示如安在Fedora 15 上安装 PHP5(通过PHP- FPM模块)+MySQL的ngixn服务器.
我不敢保证你的机械一定会工作!
1、初步阐明:
在本教程中,默许利用IP地址:192.168.0.100,主机名server1.example.com.这些设置大概会与你的服务器有所差别,所以你必须按照你的计算机实际IP和主机名举行更改.
2、首先安装mysql,终端输入以下号令.
yum install mysql mysql-server
然后配置MYSQL随计算机启动而自动启动:
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
目前,查抄网络启用.运行号令:
netstat -tap | grep mysql
显示以下信息,表示网络运行成功:
[root@server1 ~]# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 1517/mysqld
[root@server1 ~]#
假如不是反馈的如上信息,你需求编辑/etc/my.cnf文件:
vi /etc/my.cnf
注释掉下面的信息:
#skip-networking
然后重启Mysql:
/etc/init.d/mysqld restart
mysql_secure_installation
设置root密码:
[root@server1 ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none): <– 回车
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] <– 回车
New password: <– 设置你的root密码
Re-enter new password: <– 再输入一次你的密码
Password updated successfully!
Reloading privilege tables..
… Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
 
以上是“Fedora 15 安装 Nginx (PHP-FPM)+Mysql+PHP Web服务[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论