安装服务
文章平均质量分 51
guoshaoliang789
这个作者很懒,什么都没留下…
展开
-
NTP 时间同步
验证是否安装ntp服务群发,如果没有ntp服务则安装一个配置服务端。原创 2022-09-21 17:45:11 · 732 阅读 · 0 评论 -
环境变量设置后vi,ls这些命令都不能用了
解决方法:1、/bin/vi /etc/profile删除设置的环境变量2、但是现在还是不能使用 source /etc/profile3、重置环境变量export PATH=$PATH:/usr/bin:/usr/sbin:/bin:/sbin原创 2021-10-21 22:16:41 · 435 阅读 · 0 评论 -
ES集群安重启节点
1.停止集群自动分配curl -H "Content-Type: application/json" -XPUT http://192.168.20.95:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.enable":"none"}}'2.shoudown 集群节点,修改es配置,启动节点,并且确认节点已加到集群中。检查集群节点数,判断节点是否加入集群3、查看curl -XGET http://192原创 2020-08-21 09:18:28 · 460 阅读 · 0 评论 -
kvm qcow 虚拟机扩展磁盘
关闭虚拟机物理机1、查看磁盘qemu-img info 192.168.10.114.qcow2qemu-img resize 192.168.10.114.qcow2 +100G查看磁盘qemu-img info 192.168.10.114.qcow2virsh list --all# 启动虚拟机virsh start 192.168.10.114fdisk /dev/vda#服务器重启shutdown -r now[root@localhost.原创 2020-05-09 17:19:32 · 194 阅读 · 0 评论 -
FastDFS单节点安装手册
FastDFS单节点安装手册安装手册一准备工作(两台机器同时进行)1下载软件:http://sourceforge.net/projects/fastdfs/files/2安装gcc。命令:yum install make cmake gcc gcc-c+ 2安装libfastcommon(两台机器同时进行)上传libfastcommon-master.zip到/u...原创 2020-04-14 09:18:22 · 207 阅读 · 0 评论 -
Centos7 安装redis主从及配置哨兵模式
Centos7 安装redis主从及配置哨兵模式1、哨兵搭建架构ip:10.10.9.21 主10.10.9.22 从10.10.9.23 从2、安装redis安装依赖yum install gcc gcc-c++ -y下载redis-5.0.7.tar.gzcd /usr/localwget http://download.redis.io/relea...原创 2020-03-27 14:51:02 · 462 阅读 · 0 评论 -
一、kvm虚拟机静态迁移
一、kvm虚拟机静态迁移(192.168.10.91):virsh list --allvirsh domblklist 192.168.10.114virsh dumpxml 192.168.10.114 > /root/192.168.10.114.xmlscp -r 192.168.10.114.xml root@192.168.10.95:/etc/libvirt/qem...原创 2020-03-03 15:08:00 · 201 阅读 · 0 评论 -
npm run serve 界面退出
报错:界面退出解决方法:cd /var/opt/tracing-file/tracing-ui/nohup npm run serve > my.log 2>my.log & exit原创 2020-03-02 17:40:46 · 3041 阅读 · 0 评论 -
redis 设置maxclients失败 ERR The operating system is not able to handle the specified number ofclients,
错误提示ERR The operating system is not able to handle the specified number ofclients, try with 4064已设置ulimit -n 为65535systemctl daemon-reloadsystemctl restart redis.service原创 2019-11-06 10:47:47 · 1555 阅读 · 0 评论 -
GitLab的安装
GitLab的安装1.在CentOS系统上,下面的命令将会打开系统防火墙HTTP和SSH访问。yum install curl policycoreutils openssh-server openssh-clientssystemctl enable sshdsystemctl start sshdyum install postfixsystemctl enabl...原创 2019-10-16 22:29:31 · 642 阅读 · 0 评论 -
系统优化脚本
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config yum -y install wget ntp unzip zip bzip2 bzip2-devel gcc gcc-c++ cmake make gd libjpeg libjpeg-devel libpng libpng-dev...原创 2019-10-12 17:38:21 · 222 阅读 · 0 评论 -
安装ES(elasticsearch)软件
安装jdk软件wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.rpmyum install elasticsearch-6.0.0.rpm -y>/etc/elasticsearch/elasticsearch.ymlvi /etc/elasticsearch/elasti...原创 2019-10-12 17:31:59 · 569 阅读 · 0 评论 -
NFS安装
NFS安装 1、使用yum源安装 yum -y install nfs-utils -y vim /etc/exports /data/qas *(rw,no_root_squash) 2、启动nfs服务 开机启动 systemctl enable rpcbind.service systemctl enable nfs-server.service 启动nfs服务 syst...原创 2018-12-18 11:04:25 · 110 阅读 · 0 评论 -
centos 7 系统安装初始化参数
centos 7系统安装初始化参数#更改网络格式yum install vim net-tools -ycd /etc/sysconfig/network-scripts/mv ifcfg-em1 ifcfg-eth0mv ifcfg-em * / tmp /vim /etc/default/grubGRUB_CMDLINE_LINUX =“crashkernel =...原创 2018-12-10 13:50:01 · 1088 阅读 · 0 评论 -
redis 配置文件redis.conf
daemonize yespidfile /var/run/redis.pidport 6379tcp-backlog 511timeout 300tcp-keepalive 0loglevel noticelogfile /usr/local/redis/var/redis.logdatabases 16save ""stop-writes-on-bgsave-error y...原创 2019-06-12 14:19:13 · 274 阅读 · 0 评论 -
mongo集群
创建yum源vim /etc/yum.repos.d/mongodb-org-3.4.repo[mongodb-org-3.4]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/gpgcheck=0enabled=1gpgkey=...原创 2019-06-18 18:27:44 · 197 阅读 · 0 评论 -
kvm_虚拟机安装_virt-manager使用安装
vim /boot/grub/grub.confdefault=1wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum install wget -yyum -y install kvm python-virtinst libvirt tunctl bridge-u...原创 2019-07-04 17:15:35 · 1648 阅读 · 0 评论 -
jenkins自动化打包
1、SOA微服务发布2、tomcat打包服务原创 2019-08-21 14:18:06 · 114 阅读 · 0 评论 -
安装node
tar xf node-v10.16.3-linux-x64.tar.xzmv node-v10.16.3-linux-x64 /opt/mv node-v10.16.3-linux-x64 nodeln -s /opt/node/bin/node /usr/local/bin/node ln -s /opt/node/bin/npm /usr/local/bin/npm原创 2019-08-27 14:53:44 · 128 阅读 · 0 评论 -
自动化发布代码
#!/bin/bash#设置时间变量CTIME=$(date "+%Y-%m-%d-%H-%M")#项目名称,建议和gitlab仓库名称一致project=#本地代码目录(gitlab拉取代码后存放目录)CODE_DIR=/data/gitlab/"$project"#临时代码目录,用来修改配置文件和编译打包代码TMP_DIR=/data/tmp/"$project"#...原创 2019-08-28 09:52:49 · 775 阅读 · 0 评论 -
mongo分片的配置
# 连接mongo 172.16.206.34:27000use admin# config变量config = {_id:"shard1",members:[{_id:0,host:"172.16.206.34:27000"},{_id:1,host:"172.16.206.36:27000"},{_id:2,host:"172.16.206.47:27000",arbiterOnl...原创 2019-09-28 17:39:09 · 720 阅读 · 0 评论 -
ln -s 软链
原创 2019-09-30 10:24:32 · 84 阅读 · 0 评论 -
postgres 9.4安装步骤
安装postgres9.4yum install -y https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpmyum install -y postgresql94-server postgresql94-contrib/usr/pgsql...原创 2018-09-10 20:51:19 · 1118 阅读 · 0 评论