sh 通过SSH下载并安装Wordpress
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 通过SSH下载并安装Wordpress相关的知识,希望对你有一定的参考价值。
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# DOWNLOAD WORDPRESS
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#!Inside your project folder, download Wordpress and unzip it
#!To install wget in case you don't have it: brew install wget
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz
#!Since all the files are inside the Wordpress folder we need to move them back to the root of the project
mv wordpress/* ./
#!Remove Worpdress empry folder and the tar.gz file
rm -f latest.tar.gz
rm -rf wordpress
#!All commands
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz
mv wordpress/* ./
rm -f latest.tar.gz
rm -rf wordpress
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# CREATE DB
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Return to root
cd
# Login to the MySQ command-line using the following command:
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
#Now you can use the MySQL command line. For exmaple to show all your databases:
show databases;
# Create database
create database dbname;
#since we're using mamp, username root with password root is automattically added to the database
#Now you can exit the MySQL command-line by typing 'exit'.
exit
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# INSTALL WORDPRESS
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Now open the project in your browser and run the usual WordPress install.
http://localhost:8888/project-name
# use the database name we created previously on the database settings
以上是关于sh 通过SSH下载并安装Wordpress的主要内容,如果未能解决你的问题,请参考以下文章
sh 通过命令行安装wordpress
sh 安装并激活WooCommerce和Storefront的新WordPress站点。您必须安装Laravel Valet或Valet +
sh Wordpress:Bash安装脚本 - 下载最新的WP版本,使用用户提供的数据库名称,用户名和密码更新wp-config,创建
sh Wordpress:Bash安装脚本 - 下载最新的WP版本,使用用户提供的数据库名称,用户名和密码更新wp-config,创建
sh Wordpress:Bash安装脚本 - 下载最新的WP版本,使用用户提供的数据库名称,用户名和密码更新wp-config,创建
即使 SSH 工作,AWS 公共 DNS 也不会加载