11 2017 档案

摘要:在/etc/init.d/目录下创建一个简单的服务脚本,假设脚本名为hello 第一行的"#!/bin/sh"一定要有, 否则有可能会报错。 然后赋予hello可执行权限,如:chmod +x /etc/init.d/hello如果执行service hello时报错: hello.service 阅读全文
posted @ 2017-11-30 13:02 刘镇维 阅读(282) 评论(0) 推荐(0) 编辑
摘要:1、安装git yum install -y git 2、创建git仓库保存的目录 mkdir /data/git_repo 3、初始化空仓库 cd /data/git_repogit init --bare --shared example.git 4、客户端使用SSH账户访问服务器仓库 git 阅读全文
posted @ 2017-11-29 21:54 刘镇维 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1. 安装apache2安装命令: sudo apt-get install apache2启动/停止/重启apache2: service apache2 start/stop/restart2. 卸载apache2(1) $ sudo apt-get --purge remove apache2 阅读全文
posted @ 2017-11-29 15:40 刘镇维 阅读(180) 评论(0) 推荐(0) 编辑

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