
linux
文章平均质量分 61
Pompey_hpy
这个作者很懒,什么都没留下…
展开
-
CentOS7 通过Systemctl实现脚本的开机自启(亲测有效)
CentOS7 通过Systemctl实现脚本的开机自启第一步,在/lib/systemd/system/文件夹下创建flowGateway.service文件vi /lib/systemd/system/flowGateway.service[Unit]Description=flow-gatewayAfter=network.target[Service]Type=forking#启动脚本路径ExecStart=/home/flow-gateway/.原创 2021-05-19 11:10:01 · 2618 阅读 · 1 评论 -
Centos7常用操作命令
Centos命令1. 文件与目录操作 命令 解析 备注 cd /home 进入home目录 cd .. 返回上一级 cd ../.. 返回上两级 cd - 返回上次所在目录 ...原创 2020-11-11 13:41:59 · 271 阅读 · 0 评论 -
Linux Centos7批量添加用户
一、编写脚本文件addUser.sh#!/bin/bashread -p "enter the users password: " Passwdfor uname in `cat users.txt`do id $uname &> /dev/nullif [ $? -eq 0 ]then echo "already exists"elseuseradd $un...原创 2018-10-23 10:26:40 · 2205 阅读 · 1 评论