vim /etc/init.d/redisc 将下方脚本写入redisc文件中 #!/bin/sh # chkconfig: 2345 80 90 # # Simple Redis init.d script conceived to work on Linux systems # as it does use of the /proc filesystem. ​ REDISPORT1=7001 REDISPORT2=7002 REDISPORT3=7003 REDISPORT4=7004 RE…
测试环境: [root@centos-linux ~]# cat /etc/redhat-releaseCentOS Linux release 7.6.1810 (Core) [root@centos-linux ~]# php --version PHP 7.2.32 (cli) 首先安装必要的库(nginx 中gzip模块需要 zlib 库,rewrite模块需要 pcre 库,ssl 功能需要openssl库) 1.安装相关的依赖包. yum install -y gcc-c++ yum…
官方文档地址:https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment-install 有两种方式: 第一种是使用init.d,第二种是使用service 前提工作--修改pom 在pom.xml文件中标签中添加以下代码: <plugin> <groupId>org.springframework.boot</groupId> <artifac…
如何安装最新版本 1.10.0: 如果已安装旧版本,先卸载 yum remove subversion* 查看当前可安装的版本 yum list | grep subversion 可以去官网下载安装最新版的yum源设置脚本  http://subversion.apache.org/packages.html 执行该脚本,可以修改yum源,然后使用yum安装即可安装1.10.0的版本 创建SVN版本库文件夹 mkdir -p /opt/svn/repos 创建SVN版本库 svnadmin c…
参考链接: https://blog.csdn.net/qq_16268979/article/details/114771854 本文内容为个人测试记录,具体文件目录请以读者自己电脑为准,此处只是提供参考 个人学习难免有所疏漏,如有错误请包容并指出 看新的吧 https://www.cnblogs.com/guapilsh/p/15927452.html 1.准备程序 服务:autoRun.service [Unit] Description=AutoStart #z自定义服务名称,可选 Af…
From:http://blog.csdn.net/marujunyy/article/details/8466255 1.首先编写一个简单的shell脚本test.sh #! /bin/bash echo "Hello world!" filename=`date"+%Y%m%d"` echo $filename 2.设置脚本开机自启动 方法一: 编辑/etc/init.d/rc.local文件,在最后添加编写的脚本即可. 比如:将/home/test.sh添加为…
把要配置成服务的tomcat文件夹中的catalina.sh脚本文件拷一份到/etc/init.d目录,并且改文件名称为tomcat6 cp /usr/web/tomcat/tomcat-/bin/catalina.sh /etc/init.d/tomcat6 并把脚本授权给所有用户执行 chmod 755 /etc/init.d/tomcat6 修改tomcat6文件配置 vim /etc/init.d/tomcat6 添加chkconfig和description两行注释.有这两行注释才能支…
参考资料:http://www.bubuko.com/infodetail-1006383.html   http://www.cnblogs.com/skyessay/p/6433349.html 一.安装 下载redis-3.0.5.tar.gz [root@yeebian ~]# cd /opt [root@yeebian opt]# wget http://192.168.10.173:8080/website/linux/redis-3.0.5.tar.gz [root@yeebian…
一次断电,导致实体机关机了,虚拟机也连不上去,只好手动来起来. 我想增加一下自启动,让硬件开机的时候,自动启动虚拟机: 其实是有办法的,尝试了一下,也成功了,这里简单标记下. virsh autostart dev 要想停止开机自启动 virsh autostart --disable dev 注意:上面的dev是机器名称,看下下面截图,就明白了. 当然,virsh有很多命令可用,一般help基本都明白了. virsh # help Grouped commands: Domain Manage…
原文: https://www.jianshu.com/p/2e03255cfabb ubuntu配置开机自动启动服务 ---------------------------------------------------------------- 这里需要特别说明的是,Ubuntu系统下没有RedHat系统下的chkconfig命令. 但Ubuntu有一个类似的命令: sysv-rc-conf. 通过apt-get命令完成sysv-rc-conf软件的安装. 背景 Linux系统的运行级别有7…