昆仑山:眼中无形心中有穴之穴人合一

夫君子之行,静以修身,俭以养德;非澹泊无以明志,非宁静无以致远。夫学须静也,才须学也;非学无以广才,非志无以成学。怠慢则不能励精,险躁则不能冶性。年与时驰,意与岁去,遂成枯落,多不接世。悲守穷庐,将复何及!

 

docker中部署Nginx

docker pull nginx

docker exec -it c53702ad5443(容器ID 可能跟你ID 不一样) bash

docker stop c53702ad5443(容器ID) 停止容器

docker run -d -p 8090:80 docker.io/nginx

netstat -na|grep 8090

疑难巧解

Q: WARNING: IPv4 forwarding is disabled. Networking will not work.

A:

[root@localhost sysctl.d]# pwd
/usr/lib/sysctl.d
[root@localhost sysctl.d]# cat -n 00-system.conf 
     1	# Kernel sysctl configuration file
     2	#
     3	# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
     4	# sysctl.conf(5) for more details.
     5	
     6	# Disable netfilter on bridges.
     7	net.bridge.bridge-nf-call-ip6tables = 0
     8	net.bridge.bridge-nf-call-iptables = 0
     9	net.bridge.bridge-nf-call-arptables = 0
    10	net.ipv4.ip_forward=1

systemctl restart network && systemctl restart docker

posted on 2019-06-17 18:09  Indian_Mysore  阅读(129)  评论(0编辑  收藏  举报

导航