参考
制作rpm包: https://wangbin.io/blog/it/yum-rpm-make.html
linux rpm安装mysql: https://www.jianshu.com/p/3e46b0c88200
rpm 和yum学习: https://www.cnblogs.com/gmlkl/p/9354254.html
url.sh
#!/bin/bash # author: shuoqi.yu
# url: www.runoob.com url="http://www.runoob.com/login.html"
echo -e "url = ${url}" # read only
readonly url # url Length
echo -e "{#url}= ${#url}" # cut off left begin characters
echo -e "{url#*//} = ${url#*//}" # cut off left end characters
echo -e "{url##*/} = ${url##*/}" # cut off right begin characters
echo -e "{url%/*} = ${url%/*}" # cut off right end characters
echo -e "{url%%/*} = ${url%%/*}" # part obtain
echo -e "{url:1:6} = ${url:1:6}" # part obtain
echo -e "{url:7} = ${url:7}" # part obtain: left first() right first(-)
echo -e "{url:0-7} = ${url:0-7}" # part obtain
echo -e "{url:0-7:3} = ${url:0-7:3}"
ls.sh
#!/bin/bash # author: shuoqi.yu for file in $(ls);do
echo "${file}"
done
test.sh
#!/bin/bash # author: shuoqi.yu
# url: www.runoob.com # quoto url.sh
source ./url.sh echo -e "$ 0 = $0"
echo -e "$ 1 = $1"
echo -e "$ # = $#" echo -e "url = ${url}\n" # define arr
arr=( ) # display arr value
echo -e "{arr[1]} = ${arr[1]}" # display
:<<EOF
echo "This is not display."
EOF # all arr elements
echo -e "{arr[@]} = ${arr[@]}" # arr Length
echo -e "{#arr[@]} = ${#arr[@]}" # single arr element Length
echo -e "{#arr[1]} = ${#arr[1]}"
bubble.c
/* Copyright (C) 2019 * Ltd. All rights reserved.
* Create date : 2019-09-24 22:33:28
*================================================*/ #include <stdio.h> void swap(int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
} void bubbleSort(int arr[], int len)
{
int i=, j=, temp;
for(i=; i<len-; i++)
{
for(j=; j<len--i; j++)
{
if(arr[j] > arr[j+])
swap(&arr[j], &arr[j+]);
} }
} void printArr(int arr[], int len)
{
int i = ;
for(i=; i<len; i++)
printf("%d ", *(arr + i));
printf("\n");
} int main()
{
int arr[] = {, , , , };
int len = (int) sizeof(arr)/sizeof(arr[]);
bubbleSort(arr, len);
printArr(arr, len);
}
quick.c
/* Copyright (C) 2019 * Ltd. All rights reserved.
* Create date : 2019-09-24 23:01:59
*================================================*/ void quickSort(int arr[], int left, int right)
{
if(left < right)
{
int i=left, j=right, tmp=arr[left];
while(i < j)
{
while(i<j && arr[j] >= tmp)
j--;
if(i < j)
arr[i++] = arr[j];
while(i<j && arr[i] < tmp)
i++;
if(i < j)
arr[j--] = arr[i];
}
s[i] = tmp; quickSort(arr, left, i-);
quickSort(arr, i+, right);
}
}
rpm的specs学习的更多相关文章
- rpm构建流程学习总结
rpm构建流程 学习链接: b站马哥: https://www.bilibili.com/video/BV1ai4y1N7gp RedHat: https://access.redhat.com/do ...
- 第四周LINUX 学习笔记
内核编译丶sed丶awk Linux:单内核 模块化:动态 /lib/modules lsmod,modinfo,modprobe,insmod,,modprobe -r , ...
- Linux基础学习系列目录导航
Linux基础学习-通过VM安装RHEL7.4 Linux基础学习-命令行与图形界面切换 Linux基础学习-基本命令 Linux基础学习-RHEL7.4之YUM更换CentOS源 Linux基础学习 ...
- Centos 5.5 更新网卡驱动 bnx2 version: 2.0.2
操作系统:CentOS release 5.5 (Final) 故障现象:网卡无故自动down掉,使用service network restart 重启后没多久又会自动down , 连接数大概在2 ...
- Linux 基础(3)
Linux 基础(三) rpm与yum学习 本篇分享一下自己学习rpm和yum过程中的一些心得,自己在使用yum过程中由于自己的虚拟机网络的问题在学习这一块品尝到不少苦头,还望学习这块的盆友先检查一下 ...
- 【原创】大数据基础之Ambari(1)简介、编译安装、使用
官方:http://ambari.apache.org/ The Apache Ambari project is aimed at making Hadoop management simpler ...
- Linux Guard Service - 进程分裂与脱离
进程分裂更名 void set_ps_name(char *name) { prctl(PR_SET_NAME, name); } 修改进程长名称 备份进程环境变量空间 for (i = 1; i & ...
- 关于configure和Makefile
http://blog.csdn.net/lltaoyy/article/details/7615833 转篇文章,讲的不是很清楚,再附上几个资料连接,来自http://www.linuxdw.com ...
- ambari 2.5.0源码编译安装
参考:https://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari/index.html Ambari 是什么 Ambar ...
随机推荐
- PHP中使用CURL实现GET、POST、PUT、DELETE请求
/** * @param $url * @param $data * @param string $method * @param string $type * @return bool|string ...
- Docker一
Docker 简介一 背景开发和运维之间因为环境不同而导致的矛盾集群环境下每台机器部署相同的应用DevOps(Development and Operations) 简介 Docker是一个开源的应用 ...
- Note 2: Complain
Note 2: Complain 1. The collection of Linkun's [1]: 1.1suck If someone says that something sucks, th ...
- ActiveMQ单机部署及简单应用
系统版本:Centos 7 前言 MQ是消息中间件,是一种在分布式系统中应用程序借以传递消息的媒介,常用的有ActiveMQ,RabbitMQ,kafka.ActiveMQ是Apache下的开源项目, ...
- information retrieval (CMU 11642)
1. Heap's law. predict the number of new vocabulary. 参考:https://www.youtube.com/watch?v=JDp12gU-vEQ ...
- windows 清理 cbs.log 文件
请参考以下步骤 1.win+r输入 services.msc进入服务,找到并双击Windows Modules Installer点击停止, 2.然后就可以手动删除 3.按一的步骤开启TrustedI ...
- IDEA操作之test case coverage的方法
作用: 用于自动化测试,检查单元测试的覆盖率情况. 安装: 1.点击 Run * with coverage 或者右键已经定义为test source的package选择(单个test class同 ...
- c# 金钱大写转小写工具类
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...
- 【转载】在一台电脑上运行两个或两个以上的tomcat
作者注: 本片为转载文章,一台电脑运行两个及以上tomcat的原因是:第一个eclipse版本是4.5,最高支持tomcat8.0版本,并且这个版本的eclipse通过svn提交和更新项目极其缓慢,无 ...
- 论文阅读:Adaptive NMS: Refining Pedestrian Detection in a Crowd
论文阅读:Adaptive NMS: Refining Pedestrian Detection in a Crowd 2019年04月11日 23:08:02 Kivee123 阅读数 836 ...