First, confirm debugging environment
1, four confirmed
- Public communication network has been confirmed.
- Yum confirmed sources are available.
- Confirm iptables has been closed.
- Confirm selinux has been closed.
a, to confirm whether the public network communication.
ping www.baidu.com
b, yum source confirmation is available.
yum list | grep gcc
c, to confirm whether the close iptables
sudo iptables -L
Found iptables is not closed. Close iptables
-F iptables // close iptables
Reconfirm iptables is closed. We found iptables has been closed
Then confirm whether this table iptable nat rules
iptables -t nat -L
We found the rules to close this nat table rules
iptables -t nat -F
Double check nat rules of this table is closed.
So far, all the rules in iptables are all closed.
d, confirm selinux is on.
getenforce
Selinux found in running operation. Forced mode
Close selinux
setenforce 0
Double check selinux has been closed
In tolerance mode (Permissive) or shutdown mode (disabled) can be.
2, two installation
a, basic library mounting system.
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
b, the basic tool for installation.
yum -y install wget httpd-tools vim
3、一次初始化。
a、初始化创建几个目录。
cd /opt mkdir app download logs work backup
app:代码目录。
download:网上下载的源码包目录。
logs:自定义日志目ongoing录。
work:shell脚本目录。
backup:默认的配置文件的备份等各种备份目录。
本文为袋鼠学习中的总结,如有转载请注明出处:https://www.cnblogs.com/chrdai/p/11298078.html