ubuntu14.04下配置ftp服务器 发表于 2017-03-25 | 分类于 系统运维 | 下载并安装1apt-get install vsftpd ftp服务器启动和重启 启动:/etc/init.d/vsftpd start 重启:/etc/init.d/vsftpd restart 阅读全文 »
Tomcat8访问软连接目录下的文件 发表于 2017-03-25 | 分类于 综合 | Tomcat 7 修改context.xml:1<Context allowLinking="true" ></Context> Tomcat 8 修改context.xml:123<Context> <Resources allowLinking="true" ></Resources></Context> 使用软链接1ln -s /home/kyg/data/blog/upload/ /home/kyg/install/apache-tomcat-8.5.6-blog/webapps/ROOT/WEB-INF/
ssh端口转发 发表于 2017-03-25 | 分类于 系统运维 | 转发本地到远端1ssh -C -f -N -g -L 本地端口:远端IP:远端端口 远端用户名@远端IP 例子1ssh -C -f -N -g -L 2222:42.196.156.22:22 kyg@42.196.156.22 阅读全文 »
mysql数据库定时备份 发表于 2017-03-25 | 分类于 数据库 | 创建备份脚本创建.bak.sh, 内容为: 123456789#! /bin/shtoday=`date +%Y%m%d`# bak to localmysqldump -uroot -p123456 blog > /home/kyg/bak/blog-bak-$today.sql# bak to remotescp /home/kyg/bak/blog-bak-$today.sql root@121.40.66.176:/root/bak/ 阅读全文 »
ubuntu16.0.4启动zookeeper报错 发表于 2017-03-25 | 分类于 综合 | 报错信息1bin/zkServer.sh: 81: /home/kyg/install/server1/zookeeper-3.4.9/bin/zkEnv.sh: Syntax error: "(" unexpected (expecting "fi") 解决方案12345ls -l /bin/shlrwxrwxrwx 1 root root 4 12月 24 17:22 /bin/sh -> dashln -sf bash /bin/shls -l /bin/shlrwxrwxrwx 1 root root 4 12月 24 20:01 /bin/sh -> bash