跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 自己写了个GCP启动脚本,完成一些设置
未分類
11 2 月 2020

自己写了个GCP启动脚本,完成一些设置

77226204 大佬有话说 : 2020-1-7 11:05:28

自己写了个GCP启动脚本,完成一些设置

##debian9
#!/bin/sh
#安装软件,设置自定义命令
apt-get -y install wget vim
alias sur="su – root"
alias vi="vim"
#设置root密码
echo root:******|chpasswd
#设置sshd,root密码登录
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_backup
sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/ssh/sshd_config
sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
systemctl restart sshd
#中文命令提示
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
##centos,命令差不多,
#!/bin/sh
yum -y install wget
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_backup
sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/ssh/sshd_config
sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
systemctl restart sshd
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
mkdir /usr/share/man-bakcup
yum -y install man-pages-zh-CN
cp -rf /usr/share/man/* /usr/share/man-bakcup
cd /usr/share/man/
rm -rf man1 man2 man3 man4 man5 man6 man7 man8
cp -rf /usr/share/man/zh_CN/* /usr/share/man
cd

allen314 大佬有话说 : 2020-1-7 11:16:06

支持!

abccba94 大佬有话说 : 2020-1-7 11:16:41

昨天刚撸了一个gcp

装BBR
# Debian 7+
# fool
wget https://github.com/tcp-nanqinlang/general/releases/download/3.4.2.1/tcp_nanqinlang-fool-1.3.0.sh
bash tcp_nanqinlang-fool-1.3.0.sh

# CentOS 6/7
# only 64 bit
wget https://raw.githubusercontent.com/tcp-nanqinlang/general/master/General/CentOS/bash/tcp_nanqinlang-1.3.2.sh
bash tcp_nanqinlang-1.3.2.sh

小穴儿 大佬有话说 : 2020-1-7 11:17:41

支持。。

口吐芬芳 大佬有话说 : 2020-1-7 11:31:12

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具