yum

Linux之CentOS安装composer与git

痞子三分冷 提交于 2020-02-23 20:21:53
composer 1.使用命令下载 curl -sS https://getcomposer.org/installer | php 2.下载之后设置环境变量 mv composer.phar /usr/local/bin/composer 3.修改权限,否则执行会出错 chmod -R 777 /usr/local/bin/composer git yum安装 sudo yum install -y git 源码安装 1.如果没有安装过下面的依赖,安装git前要手动安装下依赖包 sudo yum install -y wget sudo yum install -y gcc-c++ sudo yum install -y zlib-devel perl-ExtUtils-MakeMaker 2.去官网下载最新版本的git源码包,我现在的最新版本是 git-2.22.0 wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.22.0.tar.gz 3.接下来就是解压,配置,安装(更多请github教程) tar -xf git-2.22.0.tar.gz cd git-2.22.0 ./configure --prefix=/usr/local make sudo make install 4.运气比较好

centos7 中 yum [Errno 256] No more mirrors to try 错误

元气小坏坏 提交于 2020-02-23 19:25:19
进入这个文件夹: cd /etc/yum.repos.d/ 然后删除这个文件夹下所有文件 找一个能用的centos7机器,把那台机器的 /etc/yum.repos.d/ 下的文件都拷贝到这台机器上 然后: yum update 即可 来源: CSDN 作者: 骑鱼的猫咪 链接: https://blog.csdn.net/qq_39820860/article/details/104464519

Media wiki 搭建

杀马特。学长 韩版系。学妹 提交于 2020-02-23 18:25:07
MediaWiki全球最著名的开源wiki程序,运行于PHP+MySQL环境。 MediaWiki从2002年2月25日被作为维基百科全书的系统软件,并有大量其他应用实例。MediaWiki的开发得到维基媒体基金会的支持。 MediaWiki是建立wiki网站的首选后台程序,国内的灰狐维客等站点都采用这套系统。 Media wiki 搭建 1.安装准备的软件及安装环境: 系统版本CentOS Linux release 7.5.1804 (Core) 2.软件版本: (1)httpd-2.4.6-80.el7.centos.1.x86_64 ; (2)Server version: 10.2.19-MariaDB MariaDB Server (3)PHP 7.1.23 (4)Windows-server-2008R2 AD域控制器 3.配置动态网卡 4.查看防火墙状态: 使用yum安装LAMP环境,关闭防火墙和selinux,便于顺利测试: systemctl status firewalld systemctl stop firewalld systemctl disable firewalld 关闭防火墙 5.配置MariaDB yum源安装Http和MariaDB vim /etc/yum.repos.d/Mariadb.repo(空文件里输入) 内容为: [mariadb

yum工作原理

亡梦爱人 提交于 2020-02-23 17:02:32
yum:基于rpm二次开发的工具 yum服务器:--仓库(repo)--Packages存放若干rpm文件 --repodata元数据(meta data):记录仓库中包含的rpm信息列表,rpm包之间的依赖性       共享仓库:http,https,ftp       本地使用仓库:file yun客户端:前提需要yum将仓库(repo)共享       配置文件:/etc/yum.repos.d/*.repo 运行yum:1,查询本地的repo文件是否存在仓库,如果有,直接连接到yum服务器的repo仓库,      2,将元数据中相关包的信息下载到客户端的缓存区      3,根据相关信息下载对应仓库的rpm文件到客户端的缓存区      4,安装rpm包      5,删除客户端缓存区的rpm包 来源: https://www.cnblogs.com/chenxi-hxl/p/12350356.html

centos系统部署

为君一笑 提交于 2020-02-23 04:10:06
系统部署: 1.查询系统版本 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 2.安装 wget yum –y install wget [root@localhost tmp]# yum -y install wget 3.NGINX下载资源包 [root@localhost tmp]# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 4.建立nginx的yum仓库 [root@localhost tmp]# rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm 5.安装NGINX [root@localhost tmp]# yum -y install nginx 6.启动nginx [root@localhost tmp]# systemctl start nginx.service 7.查看nginx状态 [root@localhost tmp]# service nginx status 或 [root@localhost tmp]# systemctl status

CentOS好玩的代码

老子叫甜甜 提交于 2020-02-23 01:56:22
1.代码雨 1.下载cmatrix文件 [root@localhost ~] # wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz -- 2018 - 07 - 17 15:06:03- - https: / / jaist . dl . sourceforge . net / project / cmatrix / cmatrix / 1 . 2a / cmatrix - 1 . 2a . tar . gz Resolving jaist . dl . sourceforge . net ( jaist . dl . sourceforge . net ) . . . 150 . 65 . 7 . 130 , 2001:df0:2ed:feed::feed Connecting to jaist . dl . sourceforge . net ( jaist . dl . sourceforge . net ) | 150 . 65 . 7 . 130 | :443 . . . connected . HTTP request sent , awaiting response . . . 200 OK Length: 74376 ( 73K )

centos7如何安装zabbix

跟風遠走 提交于 2020-02-23 00:10:13
只需要按照第三次修改版本的内容安装就可以了(水平线内的内容),主要是执行两个脚本就可以完成自动化安装了,其他内容是以前写的,仅留下来作为参考 第三次修改:(此次为zabbix4.0版本的,进一步的自动化一键安装) 共有两个脚本 第一个脚本:mysqlpasswd.sh(放在root家目录下)修改mysql密码的脚本,无需执行 #!/usr/bin/expect spawn mysql_secure_installation expect "Enter current password for root (enter for none):" send "\r" expect "Set root password? " send "Y\r" expect "New password:" send "123456\r" expect "Re-enter new password:" send "123456\r" expect "Remove anonymous users? " send "y\r" expect "Disallow root login remotely? " send "n\r" expect "Remove test database and access to it? " send "y\r" expect "Reload privilege tables

centos7 安装lnmp环境

纵然是瞬间 提交于 2020-02-22 23:56:54
准备工作 一、配置防火墙 vim /etc/sysconfig/iptables 开启80端口、3306、22端口 -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT:wq保存退出,重新启动防火墙/etc/init.d/iptables restart二、配置selinux vim /etc/selinux/config 添加一行内容: SELINUX=disabled :wq保存退出 #重启系统 shutdown -r now三、安装第三方yum源 #安装下载工具 yum install wget #下载 wget http://www.atomicorp.com/installers/atomic #安装 sh ./atomic #更新yum源 yum check-update开始安装 一. 安装nginx #删除系统自带的软件包 yum remove httpd* php* #安装nginx yum install -y nginx

Centos7下yum安装lamp+ itop2.5

天大地大妈咪最大 提交于 2020-02-22 23:46:23
Linux: centos7 Php:5.6 Itop:2.5 安装php5.6默认yum安装的是5.4 一、配置防火墙,开启80端口、3306端口(参考系统运维 www.osyunwei.com 作者:qihang01) CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)

ⅰ亾dé卋堺 提交于 2020-02-22 23:33:23
本文转载至: https://www.cnblogs.com/denghuachengle/p/10423737.html Data Center 11.11.11.11 root / password 远程连接密码: password rm -f /var/run/yum.pid httpd -v service mysqld start yum -y install httpd yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql systemctl enable httpd.service yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm yum list --enablerepo=remi --enablerepo=remi-php56 | grep php yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl