1、CentOS7环境变量分系统环境变量和用户环境变量 系统环境变量:/etc/bashrc、/etc/profile、/etc/profile.d 推荐:/etc/profile.d 用户环境变量:~/.bash_profile、~/.bashrc 推荐:~/.bash_profile 2、查看环 ...
分类:
其他好文 时间:
2021-06-20 18:02:13
阅读次数:
0
1.在/etc/init.d/创建你的脚本 cd /etc/init.d/ sudo vim add_static_route_to_34_52.sh 2.在脚本中按如下模板填写 注意### BEGIN INIT INFO和### END INIT INFO之间的都要写,后面有机会研究下为什么。 后 ...
分类:
系统相关 时间:
2021-06-19 18:41:17
阅读次数:
0
1.下载Zookeeper 官网 使用wget下载: wget https://mirrors.bfsu.edu.cn/apache/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz 2.解压资源 # 解压资源到指定目录下 tar ...
分类:
其他好文 时间:
2021-06-18 20:04:20
阅读次数:
0
使用hyperf的时候发现它监听9501端口,然后这样需要ip+port方式去访问,但是这样对用户而言有点不太友好,如果我们还有域名,可以做一个反向代理避免端口直接写出来。 找了找网上别人写的例子,感觉都太不细致了,还是自己写一个吧。 例子如下: 1.查找 sudo apt search apach ...
分类:
系统相关 时间:
2021-06-18 19:59:48
阅读次数:
0
我的宿机是Mint20,所有使用linux的命令启用VT-x/AMD-V linux启用方式 在宿机上执行命令列出所有虚机 ~$ VBoxManage list vms "centos7-1" {ec49b90a-fd46-402d-bce6-d73f0b889c9b} "centos7-2" {f ...
分类:
其他好文 时间:
2021-06-18 19:55:56
阅读次数:
0
在centos上最常用的定时任务服务是crond。 任务是由 cron (crond) 这个系统服务来控制的,这个系统服务是默认启动的。用户自己设置的计划任务则使用crontab命令。crond和crontab是不可分割的。 1. 安装软件服务 正常centos7自动安装crond服务及cronta ...
分类:
其他好文 时间:
2021-06-18 19:55:38
阅读次数:
0
df -h pvdisplay vgdisplay fdisk -l 查看新加卷在新磁盘创建物理卷pvcreate /dev/sdb将新磁盘添加到物理卷组vgextend rootvg /dev/sdb扩容lvmlvextend -L +2000G /dev/mapper/rootvg-rootlv ...
分类:
其他好文 时间:
2021-06-18 19:08:09
阅读次数:
0
描述 使用Ubuntu 20.04自带的Intelligent Pinyin输入很难受,错字连篇,急需常用词汇!!! 解决 开启输入法Preference启用Dictionary后重启输入法 候选词推荐精度显著提升! ...
分类:
系统相关 时间:
2021-06-18 18:57:43
阅读次数:
0
1.更新当前软件。 sudo apt-get upgrade sudo apt-get update sudo apt-get dist-upgrade 2.安装samba服务器。 sudo apt-get install samba samba-common 3.添加用户(下面的zhongshan ...
分类:
系统相关 时间:
2021-06-18 18:51:53
阅读次数:
0
grub 尝试了好多种方法,引导修复grub2的win7引导文件,始终无法进入之前的win7系统,选择win7之后却进入引导安装Ubuntu的命令页面,进入grub命令,输入以下命令,成功。 find --set-root /bootmgr(回车) chainloader /bootmgr(回车) ...