泡面师

  • 首页
  • 记录
centos
centos

centos安装supervisor

安装supervisor pip install supervisor 重定向默认配置文件 echo_supervisord_conf > /etc/supervisor/supervisord.conf 如果报错pkg_resources.DistributionNotFound: meld3>=0.6.5 注释/usr/lib/python2.6/site-packages/supervisor-3.3.4-py2.6.egg-info/requires.txt的#meld3 >= 0.6.5 开启…

2019-03-23 0条评论 3069点热度 2人点赞 泡面师 阅读全文
centos

linux 添加公钥免密ssh

生成Key ssh-keygen -t rsa 查看公钥 cat ~/.ssh/id_rsa.pub 添加公钥到目标机器~/.ssh/authorized_keys 如果不存在authorized_keys cd ~/.ssh cp id_rsa.pub authorized_keys authorized_keys的权限设置成600

2018-06-10 0条评论 2769点热度 2人点赞 泡面师 阅读全文
centos

centos7 git服务端配置

开发套装 yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel 创建git用户 groupadd git useradd -g git -d /home/git -m -s /bin/bash git passwd git 3HeFUErkCBNviEys 初始化 cd /home/git mkdir project.git cd project.git git --bare init chown -R git:git pro…

2018-05-25 0条评论 3007点热度 2人点赞 泡面师 阅读全文
centos

centos 7 修改ssh、ftp端口

修改ssh端口 vim /etc/ssh/sshd_config 把#Port 22去掉#号 修改为Port 22222 防火墙添加开放22222端口 vim /etc/sysconfig/iptables 添加 -A INPUT -p tcp -m state --state NEW -m tcp --dport 22222 -j ACCEPT 保存退出 保存规则并生效 chkconfig iptables on service iptables restart 修改 ftp 端口,以下为 pureftp vim…

2018-02-26 0条评论 4916点热度 8人点赞 泡面师 阅读全文
centos

linux 定时释放缓存

查看内存使用情况 free -m 类似显示 total used free shared buff/cache available Mem: 992 436 240 88 315 310 Swap: 1023 285 738 清除缓存 echo 3 > /proc/sys/vm/drop_caches 1 释放页缓存 2 释放dentries和inodes 3 释放所有缓存 数字1是用来清空最近放问过的文件页面缓存 数字2是用来清空文件节点缓存和目录项缓存 数字3是用来清空1和2所有内容的缓存 再查看内存使用…

2018-02-25 0条评论 3220点热度 3人点赞 泡面师 阅读全文
centos

centos 7 安装 oh-my-zsh

安装zsh yum -y install zsh 切换shell至zsh chsh -s /bin/zsh 安装git yum -y install git 安装oh-my-zsh wget https://www.paomianshi.com/download/oh-my-zsh/install.sh -O - | sh 运行zsh切换生效 zsh

2018-02-25 0条评论 4675点热度 1人点赞 泡面师 阅读全文
centos

centos 安装Nodejs

1、更新源 yum update 2、编译环境 先安装编译环境以便 nodejs 更好的编译 yum -y groupinstall "Development Tools" 3、 编译 nodejs 源码 cd /usr/local/src 进入目录 wget http://nodejs.org/dist/node-latest.tar.gz 下载源码 tar zxf node-*.tar.gz 解压 cd node-v* ./configure 预编译 make && make install 编…

2017-08-25 0条评论 2772点热度 0人点赞 泡面师 阅读全文
分类
  • centos (13)
  • golang (2)
  • PHP (4)
  • python (10)
  • 记录 (5)
最新 热点 随机
最新 热点 随机
golang使用mysql连接池 golang使用redis连接池 laravel7的日期格式问题 pyinstaller打包pyqt5后的程序报错Failed to execute script mac使用iterm2进行rzsz 网站设置301重定向
centos 安装Nodejs centos 7 修改ssh、ftp端口 安装selenium和chromedriver PHP json_encode返回数据问题 oneinstack php增加fileinfo扩展 git迁移
标签聚合
golang mysql go-redis redigo iterm2 scrapy redis git Flask centos

COPYRIGHT © 2024 泡面师. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS