#################################################################### [ ca ] default_ca = CA_default # The default ca section
[ CA_default ]
default_days = 365 # How long to certify for default_crl_days = 30 # How long before next CRL default_md = sha256 # Use public key default MD preserve = no # Keep passed DN ordering
x509_extensions = ca_extensions # The extensions to add to the cert
email_in_dn = no # Don't concat the email in the DN copy_extensions = copy # Required to copy SANs from CSR to cert
#################################################################### [ ca_distinguished_name ] countryName = Country Name (2 letter code) countryName_default = CN
stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = Province
localityName = Locality Name (eg, city) localityName_default = City
organizationName = Organization Name (eg, company) organizationName_default = Test CA, Limited
organizationalUnitName = Organizational Unit (eg, division) organizationalUnitName_default = Server Research Department
commonName = Common Name (e.g. server FQDN or YOUR name) commonName_default = Test CA
#################################################################### [ server_distinguished_name ] countryName = Country Name (2 letter code) countryName_default = CN
stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = Province
localityName = Locality Name (eg, city) localityName_default = City
organizationName = Organization Name (eg, company) organizationName_default = Test Server, Limited
commonName = Common Name (e.g. server FQDN or YOUR name) commonName_default = Test Server
base_dir = . certificate = $base_dir/cacert.pem # The CA certifcate private_key = $base_dir/cakey.pem # The CA private key new_certs_dir = $base_dir # Location for new certs after signing database = $base_dir/index.txt # Database index file serial = $base_dir/serial.txt # The current serial number
unique_subject = no # Set to 'no' to allow creation of # several certificates with same subject.
<GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml"/> </GlobalNamingResources>
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz tar -zxvf pcre-xxx.tar.gz cd pcre-xxx ./configure make make install
zlib,gzip压缩
1 2 3 4 5 6
wget http://zlib.net/zlib-1.2.11.tar.gz tar -zxvf zlib-xxx.tar.gz cd zlib-xxx ./configure make make install
openssl,ssl加密
1 2 3 4 5 6
wget https://www.openssl.org/source/openssl-1.0.2k.tar.gz tar -zxvf openssl-xxx.tar.gz cd openssl-xxx ./config make make install
nginx
1 2 3 4 5 6
wget http://nginx.org/download/nginx-1.10.3.tar.gz tar -zxvf nginx-xxx.tar.gz cd nginx-xxx ./configure --prefix=/opt/nginx --with-http_ssl_module --with-pcre=/opt/nginx/src/pcre-xxx --with-zlib=/opt/nginx/src/zlib-xxx --with-openssl=/opt/nginx/src/openssl-xxx make make install
vi /etc/my.cnf 在[mysqld]下面增加一行 skip-grant-tables 重启 /etc/init.d/mysqld restart
/usr/local/mysql/bin/mysql -uroot mysql> update user set authentication_string=password('123333') where user='root'; 退出来后,更改my.cnf,去掉刚加的 skip-grant-tables 重启 /etc/init.d/mysqld restart