实验步骤: 第1步:安装vsftpd并测试可用性(在vsftp.xruan.com,192.168.0.12上执行)
[iyunv@CentOS6lsrv02 ~]# yum install -y vsftpd
[iyunv@CentOS6lsrv02 ~]# yum install -y lftp
[iyunv@CentOS6lsrv02 ~]# lftp 192.168.0.12
lftp 192.168.0.12:~> 第2步:安装mysql-server并创建用户和表(在mysql.xruan.com,192.168.0.11上执行)
[iyunv@CentOS6lsrv01 ~]# yum install -ymysql-server &> /dev/null
[iyunv@CentOS6lsrv01 ~]# rpm -q mysql-server
mysql-server-5.1.71-1.el6.x86_64 启动MySQL服务
[iyunv@CentOS6lsrv01 ~]# service mysqld start
Initializing MySQL database: WARNING: The host 'CentOS6lsrv01' could notbe looked up with resolveip.
This probably means that your libc libraries arenot 100 % compatible
with this binary MySQL version. The MySQLdaemon, mysqld, should work
normally with the exception that host nameresolving will not work.
This means that you should use IP addressesinstead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right placefor your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQLroot USER !
To do so, start the server, then issue thefollowing commands:
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removingthe test
databases and anonymous user created bydefault. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon withmysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the/usr/bin/mysqlbug script!