11 2017 档案
摘要:在/etc/init.d/目录下创建一个简单的服务脚本,假设脚本名为hello 第一行的"#!/bin/sh"一定要有, 否则有可能会报错。 然后赋予hello可执行权限,如:chmod +x /etc/init.d/hello如果执行service hello时报错: hello.service
阅读全文
摘要: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
阅读全文
摘要:1. 安装apache2安装命令: sudo apt-get install apache2启动/停止/重启apache2: service apache2 start/stop/restart2. 卸载apache2(1) $ sudo apt-get --purge remove apache2
阅读全文