1. zhao-xy

    Posted

    zhao-xy
Changes in title
+make_sockのエラーせいで、apacheを起動する方法
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,24 @@
+下記のエラーが発生した際に、apacheが起動できません。
+```(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
+(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
+no listening sockets available, shutting down
+AH00015: Unable to open logs
+```
+
+対応方法
+
+```bash
+ $ fuser -k -n tcp 80
+```
+
+``` fuser --help
+ ...
+Show which processes use the named files, sockets, or filesystems.
+
+ -a,--all display unused files too
+ -i,--interactive ask before killing (ignored without -k)
+ -k,--kill kill processes accessing the named file
+ ....
+ -n,--namespace SPACE search in this name space (file, udp, or tcp)
+....
+```