docker搭建lnmp环境

入门参考

http://www.runoob.com/docker/docker-install-nginx.html

常用

  • docker ps: 查看当前运行的容器
  • docker ps -a:查看所有容器,包括停止的。

容器的管理(创建、查看、启动、终止、删除)

https://blog.csdn.net/u010246789/article/details/53958662

如何在Linux下安装vim编辑器(Ubuntu)

apt-get install vim

遇到问题就先

apt-get update再试试

CentOS和Ubuntu区别 https://blog.csdn.net/qq_21033663/article/details/78010230

详细:https://jingyan.baidu.com/article/046a7b3efd165bf9c27fa915.html

扫描二维码关注公众号,回复: 1437207 查看本文章

Linux

文件异常关闭处理

rm .{your file name}.swp

https://blog.csdn.net/xiaoshunzi111/article/details/50051679

基于Docker搭建LNMP环境

https://blog.csdn.net/xy752068432/article/details/75975065

docker 进入正在运行的容器

用法: 
docker exec [OPTIONS] CONTAINER COMMAND [ARG…] 
如一个正在运行的ubuntu容器ID为39bc60e016a7,想要进入ubuntu操作,只需输入一下命令: 
docker exec -it 39 /bin/bash

 Docker容器的端口映射

# docker run -p 8080:80 -it ubuntu /bin/bash

https://blog.csdn.net/yjk13703623757/article/details/69212521

docker 给运行中的容器设置端口映射

1.提交一个运行中的容器为镜像
docker commit containerid foo/live

2.运行镜像并添加端口
docker run -d -p 8000:80  foo/live /bin/bash

https://blog.csdn.net/libraryhu/article/details/52443447

file not found. nginx php nginx 如何开启解析 PHP 的功能

fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name; 改为 fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;

https://yq.aliyun.com/articles/46013

https://www.cnblogs.com/huaerr/p/7039797.html

https://www.cnblogs.com/iosdev/p/3439834.html

猜你喜欢

转载自www.cnblogs.com/cxscode/p/9130747.html