随笔分类 -  Linux

摘要:1.mysql安装了才能安装mydumper 2.执行install_mydumper.sh脚本,内容如下: #!/bin/bash # Author: zhangdc# DESC: 部署mydumper echo "安装依赖"echo "如果/opt/soft/不存在创建"if [ ! -d "/ 阅读全文
posted @ 2021-01-13 16:25 ToBeContinue得 阅读(101) 评论(0) 推荐(0)
摘要:1.执行/bin/bash install_mysql.sh | tee /opt/logs/mysql.log 2. install_mysql.sh内容如下: #!/bin/bash # Author: zhangdc# DESC: 部署mysql echo "如果/opt/soft/mysql 阅读全文
posted @ 2021-01-12 16:27 ToBeContinue得 阅读(470) 评论(0) 推荐(0)
摘要:1.将kettle.tar上传至/opt/soft下,将依赖包上传至/opt/rpm/kettle下 2.执行/bin/bash install_kettle.sh | tee /opt/logs/kettle.log命令,脚本内容如下: #!/bin/bash # Author: zhangdc# 阅读全文
posted @ 2021-01-11 15:59 ToBeContinue得 阅读(145) 评论(0) 推荐(0)
摘要:1.将jdk上传至/opt/soft下 2.在shell目录下创建install_java.sh 3.脚本内容如下: #!/bin/bash # Author: zhangdc# DESC: 部署配置java echo "解压源文件"tar -zxvf /opt/soft/jdk-8u211-lin 阅读全文
posted @ 2021-01-08 17:47 ToBeContinue得 阅读(295) 评论(0) 推荐(0)
摘要:1.在/opt目录下创建shell文件夹,创建install_base.sh 2.脚本内容如下: #!/bin/bash # Author: zhangdc# DESC: 系统初始化设置:selinux,ulimit,firewalld,time_zone # set selinuxset_seli 阅读全文
posted @ 2021-01-08 16:49 ToBeContinue得 阅读(456) 评论(0) 推荐(0)
摘要:1.查看防火墙状态 systemctl status firewalld.service 2.关闭防火墙 systemctl stop firewalld.service 3.禁止防火墙开机启动 systemctl disable firewalld.service 阅读全文
posted @ 2021-01-08 09:29 ToBeContinue得 阅读(96) 评论(0) 推荐(0)
摘要:1. 使用date命令查看系统时区,如果不是CST,修改为CST 2. ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 3. date -s "2020-01-01 23:59:59" //修改系统时间 4. hwclock -w // 阅读全文
posted @ 2020-09-22 11:16 ToBeContinue得 阅读(723) 评论(0) 推荐(0)
摘要:1.在firewalld 上开放该端口(例如8080) firewall-cmd --zone=public --add-port=8080/tcp --permanent 2.重启防火墙 firewall-cmd --reload 阅读全文
posted @ 2020-07-28 15:59 ToBeContinue得 阅读(2190) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/wohiusdashi/article/details/89358071 阅读全文
posted @ 2020-03-27 09:30 ToBeContinue得 阅读(80) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/502de1600b23 阅读全文
posted @ 2020-01-21 10:59 ToBeContinue得 阅读(319) 评论(0) 推荐(0)
摘要:https://my.oschina.net/rupertwong/blog/1916955 阅读全文
posted @ 2020-01-20 16:24 ToBeContinue得 阅读(103) 评论(0) 推荐(0)
摘要:1.创建目录 在usr下面新建一个Java目录,将下载的jdk压缩包放到这个路径下 2.解压 1)然后将jdk解压到java目录下面,执行解压命令:tar -xvf jdk-8u211-linux-x64.tar.gz -C /usr/java(注意路径和-C为大写) 2)重命名:将文件名jdk1. 阅读全文
posted @ 2020-01-20 14:52 ToBeContinue得 阅读(172) 评论(0) 推荐(0)
摘要:1.每个目录/文件等都具有权限,通过ls -l命令我们可以查看某个目录下的文件或目录的权限 2. 3.修改文件/目录权限的命令: chmod eg:chmod u=rwx,g=rw,o=r a.txt 阅读全文
posted @ 2019-11-17 16:53 ToBeContinue得 阅读(141) 评论(0) 推荐(0)
摘要:1.粘贴快捷键 shift+insert 2.显示当前所在目录 pwd 3.搜索命令 grep 要搜索的字符串 要搜索的文件名 类似于windows里面的ctrl+f 4.管道命令 eg:ps -ef | grep aaa 5.查看进程: ps -ef 6.清屏 clear 7.结束进程 kill 阅读全文
posted @ 2019-11-17 14:28 ToBeContinue得 阅读(142) 评论(0) 推荐(0)
摘要:1.进入VIM编辑器,例如:vim /usr/local/con.cfg(有该文件会直接打开,没有会创建); 2.插入数据,进入编辑器后,我们先按"I”,即切换到“插入”状态; 3.退出vim编辑器: 保存退出:先按键盘左上角的"ESC",退出插入模式,再输入“冒号”,即":"(不需双引号),最后输 阅读全文
posted @ 2019-11-13 21:41 ToBeContinue得 阅读(135) 评论(0) 推荐(0)
摘要:1.目录切换命令: cd ../ 代表切换到上一层 cd / 代表切换到根目录 cd usr 代表切换到当前目录下的usr cd - 代表切换到上次访问的目录 2.查看当前所在目录: pwd 3.查看当前所有的文件和文件夹: ls ls -a 可查看隐藏文件 ls -l 显示详细信息 4.创建目录: 阅读全文
posted @ 2019-11-12 11:06 ToBeContinue得 阅读(198) 评论(1) 推荐(0)
摘要:https://blog.csdn.net/q2158798/article/details/80550626 阅读全文
posted @ 2019-11-11 22:11 ToBeContinue得 阅读(91) 评论(0) 推荐(0)
摘要:1.Linux概述: Linux是基于Unix的开源免费的操作系统,由于系统的稳定性和安全性几乎成为程序代码运行的最佳系统环境(Android程序最底层就是运行在Linux系统上) 2.Linux目录结构: bin:存放二进制可执行文件; etc:存放系统配置文件; usr:存放共享的系统资源; h 阅读全文
posted @ 2019-11-11 11:17 ToBeContinue得 阅读(134) 评论(0) 推荐(0)