将Fedora11 Live安装到2GB U盘上 以及初始配置

准备

下载 Fedora11 Live ISOFedora liveusb creator

制作启动盘

插入U盘,选择镜像和操作系统版本,就可以开始制作了。

网络配置

登陆Fedora11后,修改网络配置文件 etc/sysconfig/network-scripts/ifcfg-eth0

下面是示例

然后 #ifup eth0 启用接口

chkconfig network --level 12345 on 设置网络服务在12345运行级自动启动

service network restart 重启服务


mysql数据库配置

使用 yum install mysql-server 安装mysql

安装完成后 chkconfig mysqld --level 345 on , 设为自动启动

再次service mysqld start 启动mysql

然后,连接mysql, 修改root@%的账号密码,允许远程连接。

mysql> grant all on *.* to 'root'@'%' identified by 'password';

最后service mysqld restart 重新启动mysql

使用命令netstat -ntlp 查看到mysqld在3306端口监听,说明数据库配置成功了

禁用selinux 和防火墙

前面配置完了,数据库还是不能远程访问,禁用烦人的selinux和防火墙

vi打开 /etc/selinux/config , 将SELINUX=enforcing 改为 SELINUX=disabled .保存

chkconfig iptables --level 12345 off

chkconfig ip6tables --level 12345 off

然后直接shutdown -r now 重启生效

安装Apach WEB服务

使用 yum install httpd 安装

设为自动启动 chkconfig httpd --level 345 on

最后启动 service httpd start

安装BIND DNS服务

使用yum install bind 安装
安装后 cd /var/named/
生成配置文件 rndc-confgen > rndc.conf

rndc.conf大致内容如下:

按照实际情况修改IP,然后将最下面几行根据情况拷贝到 /etc/named.conf

service named restart 启动服务

使用 nslookup csdn.net DNS服务器地址 来测试DNS解析是否正常

你可能感兴趣的:(mysql,Web,.net,防火墙)