用update-rc.d命令给Debian添加开机启动项 Linux系统设置开机启动有很多方法,网上也有许多详细教程。本文只关注用update-rc.d命令给Debian添加开机启动。
例如:将test.sh脚本添加到开机自启。
1.将test.sh脚本放到/etc/init.d/目录下
cp test.sh /etc/init.d/
cd /etc/init.d/
chmod +x test.sh
用update-rc.d命令给Debian添加开机启动项 Linux系统设置开机启动有很多方法,网上也有许多详细教程。本文只关注用update-rc.d命令给Debian添加开机启动。
例如:将test.sh脚本添加到开机自启。
1.将test.sh脚本放到/etc/init.d/目录下
cp test.sh /etc/init.d/
cd /etc/init.d/
chmod +x test.sh
Welcome to Alpine!
The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org>.
You can setup the system with the command: setup-alpine
You may change this message by editing /etc/motd.
| import createHoverMonitor from './createHoverMonitor'; | |
| import { element, func, oneOfType } from 'prop-types'; | |
| import React, { Component } from 'react'; | |
| const hover = createHoverMonitor(); | |
| /** | |
| * Use: | |
| * <Hoverable> | |
| * {(hover) => <View style={hover && styles.hovered} />} |
| #!/usr/bin/bash | |
| set -e | |
| set -u | |
| set -o pipefail | |
| #set -x | |
| # Please set these variables first, then run the script on the master node. | |
| APISERVER_ADDRESS="https://127.0.0.1:6443" # If you have a VIP for apiservers, use the VIP. | |
| USER=test # user name |
| # Source: gitlab-runner/templates/service-account.yaml | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: default | |
| namespace: gitlab | |
| --- | |
| # Source: gitlab-runner/templates/role.yaml | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: "ClusterRole" |
| #!/bin/sh | |
| mkdir -p certs | |
| openssl req -x509 -days 365 -newkey rsa:4096 -nodes -sha256 -out certs/domain.crt -keyout certs/domain.key -subj "/C=DE/ST=Berlin/L=Berlin/O=IT/CN=docker.local" |
| # Completely remove any previous config | |
| sudo apt remove --purge mysql* | |
| sudo apt autoremove | |
| sudo find / -iname mysql | |
| # install the server | |
| sudo apt update | |
| sudo apt install mysql-server | |
| # run the wizard | |
| sudo mysql_secure_installation |
| FROM ubuntu:20.04 | |
| LABEL maintainer="SiYu Wu <[email protected]>" | |
| ENV DEV_USER=user | |
| ENV UID=1000 | |
| ENV GID=1000 | |
| ENV DEF_PASSWD=password | |
| ENV TZ=Asia/Shanghai | |
| ENV LANG=en_US.UTF-8 |