文件监控可以配合rsync实现文件自动同步,例如监听某个目录,当文件变化时,使用rsync命令将变化的文件同步。(可用于代码自动发布) inotify 是linux内核的一个特性,在内核 2.6.13 以上都可以使用。 如果在shell环境下,可以安装 yum install inotify-too ...
分类:
系统相关 时间:
2020-12-23 11:40:43
阅读次数:
0
sudo apt-get update sudo apt-get install mysql-server #服务启动后端口查询 sudo netstat -anp | grep mysql #服务管理 #启动 sudo service mysql start #停止 sudo service my ...
分类:
数据库 时间:
2020-12-23 11:37:29
阅读次数:
0
服务器端: PC1,192.168.10.10 客户机端: PC2. 192.168.10.20 1、在PC1服务器端安装Apache服务 [root@PC1 ~]# yum install httpd -y Loaded plugins: langpacks, product-id, subscr ...
分类:
Web程序 时间:
2020-12-23 11:34:38
阅读次数:
0
安装node.js brew install nodejs node -v #查看版本 给nodejs模块安装目录设置访问权限 sudo chmod -R 777 /usr/local/lib/node_modules/ 安装淘宝镜像 npm install -g cnpm --registry=h ...
分类:
系统相关 时间:
2020-12-22 13:11:48
阅读次数:
0
1 两种方式 pip install django-extensions pip install django-werkzeug-debugger-runserver pip install pyOpenSSL pip install sslserver #sslserver运行 第二种 配置dja ...
分类:
Web程序 时间:
2020-12-22 13:03:50
阅读次数:
0
1.apt-get install liblua5.1-0-dev 2.编辑hello.c #include "lua.h" #include "lauxlib.h" int main(int argc, char **argv) { lua_State *L = luaL_newstate(); ...
分类:
系统相关 时间:
2020-12-22 12:31:57
阅读次数:
0
第一步:升级GCC linux一般默认GCC是4.8.5,Redis新版本使用了更高版本的GCC gcc -v # 查看gcc的版本,一般都是4.8.5 yum -y install centos-release-scl # 升级到9.1版本 yum -y install devtoolset-9- ...
分类:
系统相关 时间:
2020-12-22 12:30:41
阅读次数:
0
CentOS7通过yum安装postgreSQL 选择正确的YUM安装源 yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch. ...
分类:
数据库 时间:
2020-12-22 12:15:14
阅读次数:
0
centos7.8 安装 redis 6,先升级gcc,否则编译出错。 环境: 升级gcc: yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-bin ...
分类:
其他好文 时间:
2020-12-22 12:05:01
阅读次数:
0
1、安装brew 2、安装vim brew install vim brew install macvim 3、复制配置文件 cp /usr/share/vim/vimrc ~/.vimrc 4、安装vim-plug 下载plug curl -fLo ~/.vim/autoload/plug.vim ...
分类:
系统相关 时间:
2020-12-22 12:01:26
阅读次数:
0