lnmp.sh 606 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Usage: curl -L http://git.io/lnmp.sh | bash
  3. # 建立网站和数据库目录和下载wordpress程序设置目录权限
  4. mkdir -p /data/www/ /data/mysql
  5. cd /data/www
  6. curl https://cn.wordpress.org/latest-zh_CN.tar.gz | tar -zx
  7. chown -R www-data:www-data /data/www/wordpress
  8. # 安装 docker-compose 部署工具,部署lnmp
  9. wget https://raw.githubusercontent.com/hongwenjun/nginx-php/main/lnmp/docker-compose.yml
  10. apt install -y docker-compose
  11. docker-compose up -d
  12. # 配置 wordpress 默认密码
  13. echo ":: 数据库名: wordpress"
  14. echo ":: 用户名 : root"
  15. echo ":: 密 码 : WordPress@2021"
  16. echo "::数据库主机: 172.17.0.1"