Using Yum Variables】的更多相关文章

You can use and reference the following built-in variables in yum commands and in all Yum configuration files (that is, /etc/yum.conf and all .repo files in the /etc/yum.repos.d/ directory): $releasever You can use this variable to reference the rele…
下面是利用 man yum.conf 命令获取到的有关yum配置的说明: yum.conf(5) yum configuration file yum.conf(5) NAME yum.conf - Configuration file for yum(8). DESCRIPTION Yum 使用到的配置文件位置:/etc/yum.conf. 也可以从其他位置找配置文件,例如yum 仓库配置(default is `/etc/yum.repos.d'). See the reposdir opt…
1.安装MariaDB 安装命令 yum -y install mariadb mariadb-server 安装完成MariaDB,首先启动MariaDB,两条命令都可以 systemctl start mariadb#service mariadb start 设置开机启动 systemctl enable mariadb#chkconfig mariadb on 接下来进行MariaDB的相关简单配置 mysql_secure_installation 首先是设置密码,会提示先输入密码 E…
安装环境:CentOS7 64位,MySQL5.7 1.配置YUM源 在MySQL官网中下载YUM源rpm安装包:http://dev.mysql.com/downloads/repo/yum/  # 下载mysql源安装包 shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm # 安装mysql源 shell> yum localinstall mysql57-community-rel…
1.检查已经安装的mysql信息 yum list installed mysql*rpm -qa | grep mysql* 2.列出已安装和可安装的mysql信息 yum list mysql* 3.安装客户端 yum install mysql 4.安装服务器端 yum install mysql-server yum install mysql-devel 5.数据库字符集设置 mysql配置文件/etc/my.cnf中加入default-character-set=utf8 可以使用如…
#安装需要的包,有依赖关系,自动帮你解决 yum install httpd mysql mysql-server php php-gd php-mbstring php-mysql #启动httpd service httpd start #设为开机启动 chkconfig httpd on #启动mysqld service mysqld start #设为开机启动 chkconfig mysqld on #在根目录下创建一个测试文件,写个phpinfo函数 vi /var/www/html…
版本:centos7 Linux下安装MariaDB官方文档参见:https://mariadb.com/kb/zh-cn/installing-mariadb-with-yum/ 1.创建MariaDB.repo文件 vi /etc/yum.repos.d/MariaDB.repo 插入以下内容: # MariaDB -- : UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB ba…
用centos自带的yum源来安装nginx,mysql和php,超级方便,省去编译的麻烦,省去自己配置的麻烦,还能节省非常多的时间. 我们先把yum源换成国内的阿里云镜像源(当然不换也可以),先备份一下原来的源镜像文件,以免出错后可以恢复: [root@ ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载新的CentOS-Base.repo 到/etc/yum.repos.d/…
1.安装:#yum -y install mysql-server 2.修改配置:#vi /etc/my.cnf 暂时修改一下编码(添加在密码下方添加): default-character-set = utf8 3.启动mysql服务,并设定为系统服务: # chkconfig mysqld on ← 设置MySQL服务随系统启动自启动# chkconfig –list mysqld ← 确认MySQL自启动mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:of…
CentOS下使用yum命令 安装LAMP详细过程.我们使用的软件是CentOS的最新版本CentOS 6.3,其他版本的也基本类似. 第一步:更新系统内核(如果不想更新可以跳过本步). 首先更新系统内核到最新,因为最新版的CentOS 6.3的php版本为 5.3,早起版本的CentOS的php版本也比较低. 执行命令: yum -y update 注意:如果执行失败报错,可以执行修复命令: rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* 第二步: 安装Ap…