
centos-7
钱臻fireball
Nothing to say!
展开
-
Centos常用命令
查询系统和程序的版本信息查看文件大小1.du -h –max-depth=12.按文件大小排序 du * -sh | sort -hr原创 2017-10-18 15:19:10 · 265 阅读 · 0 评论 -
Centos 7 切换为iptables 防火墙
1.关闭firewall:service firewalld stopsystemctl disable firewalld.service #禁止firewall开机启动2.iptables安装以及 使用yum install iptables-services #安装systemctl start iptablessystemctl enable iptables原创 2017-10-11 09:59:14 · 350 阅读 · 0 评论 -
python&Django&mariadb&Apache&mod_wsgi 环境部署
Python 3 安装1,安装依赖包yum -y install readline-devel #避免虚拟环境下方向键乱码,在编译安装python前,安装readline-devel yum groupinstall 'Development Tools' yum install zlib-devel bzip2-devel openssl-devel ncurese-devel yum i原创 2017-10-11 09:41:19 · 305 阅读 · 0 评论 -
CentOS 7.2 minimal 安装后要做的事~
yum源替换 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupyum clean allyum makecachetab补全yum install bash-completionlrzsz xshell文件传输yum install lr...原创 2017-10-09 14:02:43 · 927 阅读 · 0 评论 -
Centos7&Python2.7&django&uwsgi&mariadb&python虚拟环境
先设置Python 环境变量 否则容易出错1.安装、升级pip 先安装epel源yum -y install epel-releaseyum -y install python-pippip install --upgrade pip2.安装配置djangopip install django3.安装mysql、uwsgiyum -y install mariadb mariadb-serve原创 2017-10-16 17:49:14 · 655 阅读 · 0 评论 -
Centos 7 编译安装最新版node&淘宝cnpm源
环境安装yum -y install gcc make gcc-cc++ openssl-devel wgetnode安装1.node下载,解压 https://nodejs.org/en/download/current/ node官网下载最新版nodewget https://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz tar ...原创 2018-06-14 10:40:39 · 901 阅读 · 0 评论 -
Centos 代理 squid 的安装和配置
安装yum install squidvim /etc/squid/squid.conf http_access deny all 改成allow all http_port 3128改为http_port 192.168.137.222:3128 #该IP是能访问外网机器的IP地址,如果是本机,则可以不用修改该地址systemctl start squid节点配置v...原创 2018-07-05 16:29:12 · 419 阅读 · 0 评论 -
Centos 安装node最新版
对于 RHEL, CentOS or Fedora 系统,Node.js v8 LTS版本命令:curl –silent –location https://rpm.nodesource.com/setup_8.x | sudo bash -而 Node.js 10 的命令:curl –silent –location https://rpm.nodesource.com/setup_...原创 2018-07-18 11:09:56 · 1349 阅读 · 0 评论