A supplementary explanation of when and when to use it as a petite commentary The path varies depending on the environment, but I am making it available with some changes after copying and pasting
[root@localhost~ #] httpd -v
[root@localhost~ #] cd /etc/httpd/conf
[root@localhost~ #] vi /etc/httpd/conf/httpd.conf
[root@localhost~ #] httpd -t
[root@localhost~ #] tail -f /var/log/httpd/access_log [root@localhost~ #] tail -f /var/log/httpd/error_log
[root@localhost~ #] cd /var/log/httpd vi(vim) [root @ localhost ~ #] vi file name (pass through the path) → The file edit screen will be displayed.
i
esc key (upper left of keyboard)
:q!
:wq
:w
b
e
w
Recommended Posts