随笔分类 -  操作系统 / C-CentOS是服务器主流系统

摘要:############## https://goharbor.io/docs/2.8.0/install-config/configure-yml-file/ ####################### 阅读全文
posted @ 2023-09-02 11:35 igoodful 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#################### # 一、生成CA机构的私钥,命令和生成服务器私钥一样,只不过这是CA的私钥 >> ca.key openssl genrsa -out ca.key 4096 # 二、生成CA机构自己的证书申请文件 >> ca.crt openssl req -new -s 阅读全文
posted @ 2023-08-30 22:37 igoodful 阅读(181) 评论(1) 推荐(0) 编辑
摘要:############################ 对齐: 右对齐:printf "%s" 左对齐:printf "%-s" 宽度: printf "%-10s" , 左对齐,宽度为10 printf “%-4.2f” ,左对齐,宽度为4,保留两位小数。 格式化说明符: %s: 字符串 %d: 阅读全文
posted @ 2023-06-28 17:58 igoodful 阅读(88) 评论(0) 推荐(0) 编辑
摘要:######################### https://zhuanlan.zhihu.com/p/415469149 1.创建systemd文件 vim /usr/lib/systemd/system/**.service (1)[Unit] 区块:启动顺序与依赖关系 [Unit] De 阅读全文
posted @ 2023-06-17 23:15 igoodful 阅读(213) 评论(0) 推荐(0) 编辑
摘要:######################### 可视化工具 PrettyZoo https://github.com/vran-dev/PrettyZoo/releases 下载地址:https://github.com/vran-dev/PrettyZoo/tags 每个子目录如/node1都 阅读全文
posted @ 2023-06-17 11:00 igoodful 阅读(35) 评论(0) 推荐(0) 编辑
摘要:########################## 一、阿里云的产品概览 二、购买云服务器ECS 也就是购买各种服务器,比如各种linux系统和windows系统 三、购买域名 四、ICP备案 ICP备案详解:https://help.aliyun.com/document_detail/3692 阅读全文
posted @ 2023-06-16 20:49 igoodful 阅读(56) 评论(0) 推荐(0) 编辑
摘要:########################### which [root@igoodful ~]# which ssh-keygen /usr/bin/ssh-keygen ldd [root@igoodful ~]# ldd /usr/bin/ssh-keygen linux-vdso.so 阅读全文
posted @ 2023-06-15 14:55 igoodful 阅读(203) 评论(0) 推荐(0) 编辑
摘要:###################### yum -y install qperf # 关闭网络防火墙 qperf -t 10 --use_bits_per_sec 10.10.10.10 tcp_lat 安装java jdk # 解包 tar -xf jdk-8u111-linux-x64.t 阅读全文
posted @ 2023-06-12 09:13 igoodful 阅读(55) 评论(0) 推荐(0) 编辑
摘要:########################################### [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.comb、linux 阅读全文
posted @ 2023-06-06 10:32 igoodful 阅读(127) 评论(0) 推荐(0) 编辑
摘要:function _ssh() { local user=1localip=2 local cmd=3localquotedcmdif["user" != root ]; then quoted_cmd=(quote"cmd") cmd="sudo -sk <<< $q 阅读全文
posted @ 2023-06-05 17:39 igoodful 阅读(11) 评论(0) 推荐(0) 编辑
摘要:################# ################ 阅读全文
posted @ 2023-06-01 14:15 igoodful 阅读(39) 评论(0) 推荐(0) 编辑
摘要:################# curl -s -o /etc/yum.repos.d/draios.repo http://download.draios.com/stable/rpm/draios.repo ########################### 阅读全文
posted @ 2023-05-25 14:20 igoodful 阅读(22) 评论(0) 推荐(0) 编辑
摘要:##################### 一、卸载旧版本git [root@a8-cloud-dba-db08 install_database]# yum remove git Loaded plugins: fastestmirror, langpacks Resolving Dependen 阅读全文
posted @ 2023-04-18 19:33 igoodful 阅读(123) 评论(0) 推荐(0) 编辑
摘要:######################## 背景: 在企业做自动化部署软件的时候,往往会自己搭建一个ftp服务来专门供工程师们下载,但是像我自己的部署在家的测试机一般都懒得去搭建一个ftp服务 因为我经常重装系统,玩各种系统,但是这都会给我带来一些麻烦,比如常见的一些数据库或其他软件都是必备的 阅读全文
posted @ 2023-04-16 22:02 igoodful 阅读(224) 评论(0) 推荐(0) 编辑
摘要:################################################### 有时候安装mysql等依赖包较多的时候,如果直接一条yum -install 下去会眼花缭乱 #!/bin/bash function yum_install_packages() { # 将输入 阅读全文
posted @ 2023-04-15 21:44 igoodful 阅读(62) 评论(0) 推荐(0) 编辑
摘要:##################### 今天给10年的机器重装了CentOS Linux release 7.9.2009 (Core) systemctl set-default multi-user.target [root@a8-cloud-dba-db08 ~]# cat /etc/yu 阅读全文
posted @ 2023-04-15 16:02 igoodful 阅读(924) 评论(0) 推荐(0) 编辑
摘要:########### ############################# 阅读全文
posted @ 2023-04-12 12:55 igoodful 阅读(32) 评论(1) 推荐(0) 编辑
摘要:######### 在当前用户下,不切换用户的前提下,用另一个用户执行命令 一:在shell脚本里切换用户执行命令,适合复杂命令 新建文件: cat test.sh 编辑文件内容:#!/bin/bashsu - test <<EOFpwd;exit;EOF 在exit前,可以编写多条命令执行。 sh 阅读全文
posted @ 2023-04-11 23:10 igoodful 阅读(871) 评论(0) 推荐(0) 编辑
摘要:############ dnf -y install epel-release # shfmt需要依赖epel-release dnf -y install shfmt 简单介绍一些常用的性能检测工具,例如 top、free、vmstat、iostat、mpstat、sar、pidstat等。除了 阅读全文
posted @ 2023-04-02 09:41 igoodful 阅读(60) 评论(0) 推荐(0) 编辑
摘要:##################### dump和fsck: 1 根分区的dump、fsck分别为1、1 2)/boot分区的dump、fsck分别为1、2 3)其他分区的dump、fsck分别为0、0 用以专门读写数据,提高性能 options选项: 1)根分区和boot分区,一般均为defa 阅读全文
posted @ 2021-09-28 17:54 igoodful 阅读(560) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示