南昌app定制_河北秦皇岛疫情最新动态_做电商运营需要具备什么能力_大型门户网站建设所具有的功能模块主要有几种类型
">

网站建设是什么专业里的科目

网站建站四件套是什么、微信朋友圈营销技巧、永久使用、不限域名、小程序免费制作平台有吗

公司包装推广?

南昌app定制_河北秦皇岛疫情最新动态_做电商运营需要具备什么能力_大型门户网站建设所具有的功能模块主要有几种类型

Resources:Vpc:Type: ALIYUN::ECS::VPCCondition: CreateInstanceProperties:CidrBlock: 192.168.0.0/16VSwitch:Type: ALIYUN::ECS::VSwitchCondition: CreateInstanceProperties:ZoneId:Ref: ZoneIdVpcId:Ref: VpcCidrBlock: 192.168.0.0/24SecurityGroup:Type: ALIYUN::ECS::SecurityGroupCondition: CreateInstanceProperties:VpcId:Ref: VpcSecurityGroupIngress_22:Type: ALIYUN::ECS::SecurityGroupIngressProperties:SecurityGroupId:Fn::Jq:- First- .[0].SecurityGroupIds[0]- Fn::GetAtt:- DS_Instances- InstancesSourceCidrIp: 0.0.0.0/0IpProtocol: tcpNicType: intranetPortRange: 22/22SecurityGroupIngress_80:Type: ALIYUN::ECS::SecurityGroupIngressProperties:SecurityGroupId:Fn::Jq:- First- .[0].SecurityGroupIds[0]- Fn::GetAtt:- DS_Instances- InstancesSourceCidrIp: 0.0.0.0/0IpProtocol: tcpNicType: intranetPortRange: 80/80SecurityGroupIngress_443:Type: ALIYUN::ECS::SecurityGroupIngressProperties:SecurityGroupId:Fn::Jq:- First- .[0].SecurityGroupIds[0]- Fn::GetAtt:- DS_Instances- InstancesSourceCidrIp: 0.0.0.0/0IpProtocol: tcpNicType: intranetPortRange: 443/443WaitConditionHandle:Type: ALIYUN::ROS::WaitConditionHandleProperties: {}RosWaitCondition:Type: ALIYUN::ROS::WaitConditionProperties:Count: 1Handle:Ref: WaitConditionHandleTimeout: 7200DS_Instances:Type: DATASOURCE::ECS::InstancesProperties:InstanceIds:Fn::If:- CreateInstance- Fn::GetAtt:- InstanceGroup- InstanceIds- - Ref: InstanceIdInstanceGroup:Type: ALIYUN::ECS::InstanceGroupCondition: CreateInstanceProperties:VpcId:Ref: VpcVSwitchId:Ref: VSwitchSecurityGroupId:Ref: SecurityGroupImageId: centos_7_8InstanceType:Ref: InstanceTypeSystemDiskCategory:Ref: SystemDiskCategoryPassword:Ref: InstancePasswordIoOptimized: optimizedMaxAmount: 1InstallWordpress:Type: ALIYUN::ECS::RunCommandProperties:InstanceIds:Fn::If:- CreateInstance- Fn::GetAtt:- InstanceGroup- InstanceIds- - Ref: InstanceIdType: RunShellScriptSync: trueTimeout: 7200CommandContent:Fn::Sub:- |-#!/bin/bashif [ ! -f .ros.provision ]; thenecho "Name: 手动搭建WordPress(CentOS 7)" > .ros.provisionfiname=$(grep "^Name:" .ros.provision | awk -F':' '{print }' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')if [[ "$name" != "手动搭建WordPress(CentOS 7)" ]]; thenecho "当前实例已使用过\"$name\"教程的一键配置,不能再使用本教程的一键配置"${WaitConditionHandle.CurlCli} --data-binary "{\"status\": \"FAILURE\", \"reason\": \"The current instance has already applied the configuration of the \\"$name\\" tutorial, and the configuration of this tutorial can no longer be applied.\"}"exit 0fiecho "#########################"echo "# Check Network"echo "#########################"ping -c 2 -W 2 aliyun.com > /dev/nullif [[ $? -ne 0 ]]; thenecho "当前实例无法访问公网"${WaitConditionHandle.CurlCli} --data-binary "{\"status\": \"FAILURE\", \"reason\": \"The current instance cannot access the public network.\"}"exit 0fiif ! grep -q "^Step1: Prepare Environment$" .ros.provision; thenecho "#########################"echo "# Prepare Environment"echo "#########################"systemctl status firewalldsystemctl stop firewalldecho "Step1: Prepare Environment" >> .ros.provisionelseecho "#########################"echo "# Environment has been ready"echo "#########################"fiif ! grep -q "^Step2: Install Nginx$" .ros.provision; thenecho "#########################"echo "# Install Nginx"echo "#########################"yum -y install nginxnginx -vecho "Step2: Install Nginx" >> .ros.provisionelseecho "#########################"echo "# Nginx has been installed"echo "#########################"fiif ! grep -q "^Step3: Install MySQL$" .ros.provision; thenecho "#########################"echo "# Install MySQL"echo "#########################"rpm -Uvh https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpmyum -y install mysql-community-server --nogpgcheckmysql -Vsystemctl start mysqldsystemctl enable mysqldsystemctl daemon-reloadecho "Step3: Install MySQL" >> .ros.provisionelseecho "#########################"echo "# MySQL has been installed"echo "#########################"fiif ! grep -q "^Step4: Install PHP$" .ros.provision; thenecho "#########################"echo "# Install PHP"echo "#########################"yum install -y \https://mirrors.aliyun.com/ius/ius-release-el7.rpm \https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpmyum -y install php-devel php php-cli php-common php-gd php-ldap php-mbstring php-mcrypt php-pdo php-fpm php-opcache php-pecl-redis php-pecl-mongodb php-mysqlndphp -vecho "Step4: Install PHP" >> .ros.provisionelseecho "#########################"echo "# PHP has been installed"echo "#########################"fiif ! grep -q "^Step4: Config Nginx$" .ros.provision; thenecho "#########################"echo "# Config Nginx"echo "#########################"cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bakcat > /etc/nginx/nginx.conf << \EOF# For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: http://nginx.org/ru/docs/user nginx;worker_processes auto;error_log /var/log/nginx/error.log;pid /run/nginx.pid;# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.include /usr/share/nginx/modules/*.conf;events {worker_connections 1024;}http {log_format main '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" "$http_x_forwarded_for"';access_log /var/log/nginx/access.log main;sendfile on;tcp_nopush on;tcp_nodelay on;keepalive_timeout 65;types_hash_max_size 4096;include /etc/nginx/mime.types;default_type application/octet-stream;# Load modular configuration files from the /etc/nginx/conf.d directory.# See http://nginx.org/en/docs/ngx_core_module.html#include# for more information.include /etc/nginx/conf.d/*.conf;server {listen 80;listen [::]:80;server_name _;root /usr/share/nginx/html/wordpress;# Load configuration files for the default server block.include /etc/nginx/default.d/*.conf;location / {index index.php index.html index.htm;}location ~ .php$ {root /usr/share/nginx/html/wordpress; # 将/usr/share/nginx/html替换为您的网站根目录,本文使用/usr/share/nginx/html作为网站根目录。fastcgi_pass 127.0.0.1:9000; # Nginx通过本机的9000端口将PHP请求转发给PHP-FPM进行处理。fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params; # Nginx调用fastcgi接口处理PHP请求。}error_page 404 /404.html;location = /404.html {}error_page 500 502 503 504 /50x.html;location = /50x.html {}}# Settings for a TLS enabled server.## server {# listen 443 ssl http2;# listen [::]:443 ssl http2;# server_name _;# root /usr/share/nginx/html;## ssl_certificate "/etc/pki/nginx/server.crt";# ssl_certificate_key "/etc/pki/nginx/private/server.key";# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 10m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;## # Load configuration files for the default server block.# include /etc/nginx/default.d/*.conf;## error_page 404 /404.html;# location = /40x.html {# }## error_page 500 502 503 504 /50x.html;# location = /50x.html {# }# }}EOFsystemctl start nginxsystemctl enable nginxecho "Step4: Config Nginx" >> .ros.provisionelseecho "#########################"echo "# Nginx has been configured"echo "#########################"fiif ! grep -q "^Step6: Config MySQL$" .ros.provision; thenecho "#########################"echo "# Config MySQL"echo "#########################"export MYSQL_PWD=`grep "temporary password" /var/log/mysqld.log | awk '{print $NF}'`mysqladmin -uroot password '${DbPassword}'export MYSQL_PWD='${DbPassword}'mysql -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '${DbPassword}'"echo CREATE DATABASE wordpress\; >> /tmp/setup.mysqlecho CREATE user "user"@"localhost" identified by '"${DbPassword}"'\; >> /tmp/setup.mysqlecho GRANT ALL privileges ON wordpress.* TO "user"@"localhost" IDENTIFIED BY '"${DbPassword}"'\; >> /tmp/setup.mysqlecho FLUSH privileges\;>> /tmp/setup.mysqlchmod 400 /tmp/setup.mysqlmysql -u root --password='${DbPassword}' < /tmp/setup.mysql echo "Step6: Config MySQL" >> .ros.provisionelseecho "#########################"echo "# MySQL has been configured"echo "#########################"fiif ! grep -q "^Step7: Config PHP$" .ros.provision; thenecho "#########################"echo "# Config PHP"echo "#########################"echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/phpinfo.phpsystemctl start php-fpmsystemctl enable php-fpmecho "Step7: Config PHP" >> .ros.provisionelseecho "#########################"echo "# PHP has been configured"echo "#########################"fiif ! grep -q "^Step8: Install wordpress$" .ros.provision; thenecho "#########################"echo "# Install wordpress"echo "#########################"yum -y install wordpressecho "Step8: Install wordpress" >> .ros.provisionelseecho "#########################"echo "# wordpress has been installed"echo "#########################"fiif ! grep -q "^Step9: Config wordpress$" .ros.provision; thenecho "#########################"echo "# Config wordpress"echo "#########################"mv /usr/share/wordpress /usr/share/nginx/html/wordpresscd /usr/share/nginx/html/wordpressln -snf /etc/wordpress/wp-config.php wp-config.phpsed -i "s/database_name_here/wordpress/" wp-config.phpsed -i "s/username_here/user/" wp-config.phpsed -i "s/password_here/${DbPassword}/" wp-config.phpecho "Step9: Config wordpress" >> .ros.provisionelseecho "#########################"echo "# wordpress has been configured"echo "#########################"fisystemctl restart nginx${WaitConditionHandle.CurlCli} --data-binary '{"status": "SUCCESS"}'- IP:Fn::Jq:- First- if .[0].PublicIpAddress != [] then .[0].PublicIpAddress[0] else .[0].EipAddress.IpAddress end- Fn::GetAtt:- DS_Instances- InstancesDependsOn:- SecurityGroupIngress_22- SecurityGroupIngress_443- SecurityGroupIngress_80 怎么免费制作公司网页网站建设制作优帮云深圳企业黄页哈尔滨专业网站建设哪个好oppo应用商店官网没有服务器如何做网站开发一款新闻app需要多少钱传奇 网页游戏排行榜阿里巴巴运营教程前端web培训湖南郴州今日头条新闻实用设计网站推荐中国土木工程网今天昆明刚刚发生的新闻网址导航是什么软件中国建材b2b电商平台有哪些泉州网站快速排名提升html网页设计小作业的代码部分取个网络公司名字今日汽油价中国建筑装修网昆明疫情紧急通知成都游戏软件开发公司有哪些全国最好的加盟网站中国商务服务网虫虫wap建站源码开发公司一季度汇报建设工程合同指什么自学网站开发微信棋牌游戏代理平台免费做流程图的网站

猜你喜欢

  • 友情链接:
  • 商城网站建设特点有哪些 郑州企业服务公司 安阳信息港网站 山西省吕梁市疫情 开发工具里的选项都是灰色的 大连甘井子区教育局