在Linux LAMP中部署WordPress可參考以下步驟:
sudo apt update
和sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql
安裝。sudo mysql_secure_installation
進行安全配置,然后登錄MySQL創建數據庫和用戶,并授予權限。/var/www/html
,并解壓,可通過命令cd /var/www/html
、sudo wget https://wordpress.org/latest.tar.gz
、sudo tar -xzvf latest.tar.gz
實現。sudo nano /etc/apache2/sites-available/wordpress.conf
,添加相關配置后啟用該站點配置并重啟Apache。