1
基础环境配置 11配置centos7 12安装xshall 13安装xftp7
2
配置jdk 18 ==第一步 卸载系统自带的OpenJDK以及相关的java文件。
《Linux服务器搭建实战详解原版》百度网盘pdf最新全集下载:
链接:>pwd=ygri 提取码:ygri
简介:本书首先对Linux *** 作系统进行了相关概述,并讲解了安装Red Hat Enterprise Linux 5的相关知识及Red Hat Enterprise Linux 5中的GNOME和KDE两种桌面管理器。然后介绍了在Linux *** 作系统中各种常用服务的配置管理方法及其相关应用,包括FTP服务、电子邮件服务、Web服务、DHCP服务、DNS服务、代理服务、Samba服务、NFS服务、LDAP目录服务、SSH服务及MySQL数据库服务等。同时本书还加入了常用的网络管理知识和基础的系统管理知识,包括Linux *** 作系统的网络连通性测试、网络管理、软件基础管理、软件包高级管理、用户和进程管理、Linux文件系统及磁盘管理,以及Linux *** 作系统安全管理。
本教程中使用的IP地址是1921680100,主机名称为Server1examplecom 这些设置可能会有所不同,你需要根据不同情况进行修改。
CentOS 62下安装MySQL
2开始安装MySQL5
首先我们应该先用下面的命令安装MySQL:
yum install mysql mysql-server
然后我们需要创建MySQL系统的启动键链接启动MySQL服务器,这样以便于MySQL在系统启动时自动启动
chkconfig --levels 235 mysqld on
/etc/initd/mysqld start
为MySQL root帐户设置密码:
mysql_secure_installation
会出现下面的一系列提示:
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] <-- ENTER
New password: <-- yourrootsqlpassword
Re-enter new password: <-- yourrootsqlpassword
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
them This is intended only for testing, and to make the installation
go a bit smoother You should remove them before moving into a
production environment
Remove anonymous users [Y/n] <-- ENTER
Success!
Normally, root should only be allowed to connect from 'localhost' This
ensures that someone cannot guess at the root password from the network
Disallow root login remotely [Y/n] <-- ENTER
Success!
By default, MySQL comes with a database named 'test' that anyone can
access This is also intended only for testing, and should be removed
before moving into a production environment
Remove test database and access to it [Y/n] <-- ENTER
- Dropping test database
Success!
- Removing privileges on test database
Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately
Reload privilege tables now [Y/n] <-- ENTER
Success!
Cleaning up
All done! If you've completed all of the above steps, your MySQL
installation should now be secure
Thanks for using MySQL!
[root@server1 ~]#
CentOS 62下安装Apache
3安装阿帕奇2
Apache2的是作为一个CentOS的软件包,因此我们可以直接用下面命令安装它:
yum install >
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)