This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# MicroK8s + Rancher installer | |
## | |
# 如果您的環境不是在 GCP 請自行調整以下兩個變數 | |
EXTERNAL_IP=$(curl -s 169.254.169.254/computeMetadata/v1beta1/instance/network-interfaces/0/access-configs/0/external-ip) | |
PROJECT_ID=$(curl -s 169.254.169.254/computeMetadata/v1beta1/project/project-id) | |
sudo snap install microk8s --channel=1.18 --classic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我的 | |
你的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
git clone https://github.com/systex0668247/GKE-Istio.git | |
cd GKE-Istio | |
cloudshell launch-tutorial tutorial.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start | |
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist | |
# stop | |
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# This script will install wordpress on a pure CentOS 6.7 minimal | |
# | |
# Step 1. create a file and copy code from this Gist | |
# 2. check every configuration right | |
# 3. Do it! | |
# ex: /bin/sh /path/to/wp-install.sh | |
### | |
# @author Abola Lee<[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Disable SElinux | |
# | |
mv /etc/selinux/config /etc/selinux/config.ori | |
echo "SELINUX=disabled" > /etc/selinux/config | |
echo "SELINUXTYPE=targeted" >> /etc/selinux/config | |
### | |
# Install NTP service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
JENKINS_VERSION="2.0-rc-1" | |
### | |
# Automatic install docker with script | |
# @see <a href="https://docs.docker.com/engine/installation/linux/centos/">Installation on CentOS</a> | |
## | |
curl -fsSL https://get.docker.com/ | sh | |
# start docker.service | |
systemctl start docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# This script will install wordpress on a pure CentOS 6.7 minimal | |
# | |
# Step 1. create a file and copy code from this Gist | |
# 2. check every configuration right | |
# 3. Do it! | |
# ex: /bin/sh /path/to/wp-install.sh | |
### | |
# @author Abola Lee<[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# required install | |
yum -y groupinstall 'Development Tools' | |
yum -y install wget patch git | |
yum -y install pcre-devel zlib-devel openssl-devel | |
# nginx download | |
wget http://nginx.org/download/nginx-1.8.1.tar.gz | |
tar zxvf nginx-1.8.1.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# pidfile: /var/run/nginx.pid |
NewerOlder