#!/bin/bash # 字符串拼接专题 name="Shell" url="http://c.biancheng.net/shell/" str1=$name$url #中间不能有空格 str2="$name $url" #如果被双引号包围,那么中间可以有空格 str3=$name": "$ur ...
分类:
系统相关 时间:
2020-07-03 21:20:15
阅读次数:
96
https://www.jb51.net/article/99996.htm 本文系统:Centos6.5_x64 三台主机:nginx主机,hostname: master.lansgg.com IP: 192.168.10.128 apache主机,hostname: client1.lansg ...
分类:
Web程序 时间:
2020-07-03 21:08:51
阅读次数:
52
一.检查是否安装了本地任务 Crontab systemctl status crond 二.如果没有就安装呀 yum install -y vixie-cron yum install -y crontabs 然后启动: systemctl start crond.service 三.cronta ...
分类:
系统相关 时间:
2020-07-03 21:00:09
阅读次数:
71
1、开始 clone,如果觉得仓库太大,可以在 git clone 中加入参数 --depth=1,只拉取最近的一个 revision git clone --depth=1 https://github.com/torvalds/linux.git 2、使用第三方网站导入github的仓库,再从第 ...
分类:
其他好文 时间:
2020-07-03 19:55:16
阅读次数:
125
错误日志: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHos ...
分类:
编程语言 时间:
2020-07-03 19:52:09
阅读次数:
84
问题背景:java在项目中读取txt文件中的内容,返回前台页面。在eclipse里面一切正常,项目没有乱码显示,在linux服务器上一切正常,无乱码。但是在windows系统下的tomca请求出现乱码。数据库读出来的数据正常,但从txt文件读出的数据出现乱码。 解决方法尝试1: 修改tomcam下c ...
分类:
其他好文 时间:
2020-07-03 19:31:20
阅读次数:
51
1.oracle用户登录到Linux或者 win的cmd的内 登录##sqlplus 账号/密码 as sysdba $sqlplus sys/oracle as sysdba;备注:普通用户不需要as sysdba;##查看当前连接数据库用户sql>show user;##切换管理员SQL>con ...
分类:
数据库 时间:
2020-07-03 19:20:45
阅读次数:
70
软件著作权申报时,使用Linux系统find命令如何统计项目行数 案例:我们查询当前目录下的php,js,css,html文件的代码行数,并忽略./App/Runtime 和 ./Uploads 目录下的文件find ./ "(" -path "./App/Runtime" -o -path "./ ...
分类:
系统相关 时间:
2020-07-03 19:19:37
阅读次数:
71
1.文件内容查询 1.1.Tail 命令 tail [参数] [文件] 参数: -f 循环读取 -q 不显示处理信息 -v 显示详细的处理信息 -c<数目> 显示的字节数 -n<行数> 显示文件的尾部 n 行内容 --pid=PID 与-f合用,表示在进程ID,PID死掉之后结束 -q, --qui ...
分类:
系统相关 时间:
2020-07-03 19:18:44
阅读次数:
130
在当前命令窗口下输入命令: ls / 你会看到如下图所示: 树状目录结构: 以下是对这些目录的解释: /bin:bin是Binary的缩写, 这个目录存放着最经常使用的命令。 /boot:这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件。 /dev :dev是Device ...
分类:
系统相关 时间:
2020-07-03 19:15:49
阅读次数:
60