实验环境 用的是阿里云上面的服务器 安装Apache 设置httpd服务开机启动 启动Apache 查看Apache的状态 确认80端口的状态 查看Apache的版本 验证安装 用浏览器打开服务器的IP地址,将看到默认的Apache欢迎页面表示成功 Apache命令 停止Apache服务 启动Apa ...
分类:
Web程序 时间:
2020-04-12 16:47:25
阅读次数:
79
[root@localhost ~]#firewall-cmd --state not running [root@bigdata hadoop]# systemctl is-enabled firewalld.service;echo $? (查看服务是否开机启动) enabled 0 [root ...
分类:
系统相关 时间:
2020-04-11 18:17:13
阅读次数:
249
编写开机启动脚本: I、nginx开机启动 1、在/etc/init.d/目录下创建脚本 vi /etc/init.d/nginx 2、更改脚本权限 chmod 775 /etc/init.d/nginx 3、编写脚本内容 #!/bin/bash # nginx Startup script for ...
分类:
其他好文 时间:
2020-04-09 00:50:55
阅读次数:
64
在设置mysql开机启动时,出现了“Failed to enable unit: Refusing to operate on linked unit file mysql.service”,那么需要检测以下mysql是否设置过了开机启动, 方法为: sudo systemctl is-enable ...
分类:
数据库 时间:
2020-04-08 09:49:03
阅读次数:
230
CentOS7配置nexus开机自启动 新建nexus启动脚本 进入 目录,新建脚本文件nexus 脚本内容: 设置脚本权限 使用service命令使用nexus 添加到开机启动 查看nexus开机启动 设置防火墙 添加以下放开端口内容, 其它不变 参考来源 "【Nexus】 设置开机自启动" "C ...
分类:
其他好文 时间:
2020-04-08 09:40:28
阅读次数:
398
Python无限弹窗,打包为exe程序开机自启动,娱乐小程序。importtkinterastkimportrandom,threading,win32api,win32con,shutil,os,sysdefMymovefile():#移动程序到当前分区下命名为ARE_YOU_OKAY.exe。朋友问删了为什么还会执行。当然是因为有备份,玩够了就在分区下面删除这个吧。ifnotos.path.e
分类:
编程语言 时间:
2020-04-07 20:58:59
阅读次数:
436
防火墙 查看防火墙状态 firewall-cmd --state systemctl status firewalld 停止firewall systemctl stop firewalld.service禁止firewall开机启动 systemctl disable firewalld.serv ...
分类:
其他好文 时间:
2020-04-07 18:48:48
阅读次数:
123
1.自己新建一个脚本,如centnet-service.sh经过后面的几个步骤后,这个脚本在开机的时候会执行,在这个脚本里面可以写你开机的时候想执行的命令,如启动tomcat,oracle等服务 2.在脚本中输入启动服务的命令,如(开机启动tomcat): #!/bin/bash export JD ...
分类:
系统相关 时间:
2020-04-03 13:56:31
阅读次数:
85
1.树莓派开机启动net core程序 首先在建立一个.sh脚本文件,文件内容为需要启动的netcore程序,示例如下 chmod 777 /home/pi/Documents/HuiBo/publish/AutoStart /home/pi/Documents/HuiBo/publish/Auto ...
分类:
其他好文 时间:
2020-03-31 16:04:53
阅读次数:
83
安装docker的前提条件 1)关闭系统的防火墙和selinux 2) 同步系统时间 3)系统必须是centos7以上 移除旧版本yum remove docker docker-client docker-client-latest docker-common docker-latest dock ...
分类:
其他好文 时间:
2020-03-30 13:11:04
阅读次数:
73