lnmp環境配置

2021-10-05 15:17:04 字數 717 閱讀 6972

1、配置ssh遠端連線:sudo apt-get install ssh

2、配置環境:wget -co lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp

(教程**:

3、配置埠號訪問專案 :

(root賬號不能遠端連線資料庫)

5、新建mysql賬戶並授權

mysql> grant all privileges on *.* to '使用者名稱'@'%' identified by '密碼' with grant option; 

mysql> flush privileges;

6、若mysql不能外鏈則直接通過iptables進行操作

1、檢視已有的iptables規則,以序號顯示

2、刪除對應的drop規則

iptables -d input 5

注釋1、也可應phpmyadmin登入root賬號連線資料庫 建立賬號

注釋2、xshell 6鏈結伺服器

lnmp環境配置

安裝libmcrypt checking for c compiler default output file name.configure error c compiler cannot create executables see config.log for more details.解決辦法...

阿里雲 LNMP 環境配置

使用yum安裝apache伺服器 yum install nginx 修改為 listen 80 vim etc nginx conf.d default.conf 檢視nginx狀態 nginx t 啟動nginx服務 service nginx start 配置 nginx 虛擬主機,注意,網域...

Ubuntu下LNMP環境配置

ubuntu下lnmp環境配置 1.安裝mysql sudo apt install mysql server注 設定密碼看這裡 2.安裝nginx和php 新增nginx和php的ppa源 sudo apt add repository ppa nginx stable sudo apt add ...