Linux
文章平均质量分 54
Linux
洞妖呼叫洞妖
这个作者很懒,什么都没留下…
展开
-
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22
yum 安装http时找不到源第一步vim /etc/yum.repos.d/CentOS-Base.repo把CentOS-Base.repo里的http://mirrors.cloud.aliyuncs.com全都改成http://mirrors.aliyun.com/centos-vault第二步vim /etc/yum.repos.d/epel.repo把epel.repo里的enabled=1改成enabled=0最后yum clean allyum makecache原创 2021-11-11 15:57:17 · 2801 阅读 · 0 评论 -
linux tar、zip、gzip的使用
tar#压缩tar -czvf xxx.tar.gz xxx #解压tar -xzvf xxx.tar.gz-c 压缩-x 解压-z 使用gzip或者gunzip-v 显示过程-f 使用档案名字,切记,这个参数是最后一个参数,后面只能接档案名,-f是必须的zip#压缩zip -qr xxx.zip xxx#解压unzip -q xxx.zip-q 不显示过程-r 递归gzip 不能压缩文件夹,不保留原文件gunzip 不能解压文件夹,不保留原文件#压缩文件,后原创 2020-09-04 18:10:16 · 99 阅读 · 0 评论 -
linux源码安装php7.2.0
下载资源链接: https://pan.baidu.com/s/1ELl-Sm4wZdSxEkUfhcml8Q 提取码: nv6r解压php压缩包tar –zxvf php-7.2.0.tar.gzcd php7.2.0安装php需要的扩展yum install libxml2 libxml2-devel openssl openssl-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel fr.原创 2020-08-28 14:43:22 · 132 阅读 · 0 评论 -
contrab 安装及命令
安装yum -y install vixie-cron crontabscrontab服务状态操作:/sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 /sbin/...原创 2020-04-23 15:40:49 · 377 阅读 · 0 评论 -
linux 删除软连接
#创建软连接ln -s /usr/local/python3/bin/python3 /usr/bin/python3#删除软连接rm -rf /usr/bin/python3原创 2020-04-23 14:53:10 · 168 阅读 · 1 评论 -
Linux下Apache配置虚拟域名
编辑http.confListen 8080 #开启端口号 NameVirtualHost *:8080<VirtualHost *:8080> DocumentRoot /home/wwwroot ServerName xxx.com <Directory /home/wwwroot> Options Indexes FollowSymLinks...原创 2020-04-23 14:51:16 · 110 阅读 · 0 评论 -
Centos6.8 搭建LAMP/LNMP环境
1.安装Apache1.使用yum安装apacheyum install httpd -y2.启动apacheservice httpd start3.上一步启动会有报错信息,然后我们查看hostname主机名,并将该主机名添加到apache配置文件的ServerName参数中[tong@tong /]$ hostname tong [tong@tong /]$ cat /et...原创 2020-04-23 14:41:32 · 122 阅读 · 0 评论