yumekiti-archive / LAMP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LAMP

使い方

docker

起動

make up

停止

make down

削除

make rm

その他。

make logs       ログ見る
make restart    再起動
make db         dbのshellに入る

php

使い方がわかりにくかったので実際に書いてみました。

./php/index.php

mysql -u test_user -p test_db
password test_ps

select * from meibo

./php/create.php

mysql -u test_user -p test_db
password test_ps

CREATE TABLE meibo (id INT,name TEXT)

./php/delete.php

mysql -u root -p 
password root

DELETE FROM test_db.meibo WHERE id = 1

これをphpで行っている。

nginx

./php/public/

http://localhost:8080/

About


Languages

Language:PHP 83.4%Language:Makefile 11.1%Language:Shell 5.5%