[[Email protected] ~] # Cd/usr/local/src/
[[Email protected] SRC] # cdkeystone-2014.1
[[Email protected] keystone-2014.1] # Python setup. py install
[[Email protected] keystone-2014.1] # CD etc/
[[Email protected] etc] # ll
Total usage 72
-RW-r -- 1 1004 1004 1540 April 17 17:19 default_catalog.templates
-RW-r -- 1 1004 1004 38423 April 17 17:19 Keystone. conf. Sample
-RW-r -- 1 1004 1004 April 17 17:19 keystone-paste.ini
-RW-r -- 1 1004 1004 1046 April 17 17:19 logging. conf. Sample
-RW-r -- 1 1004 1004 6397 April 17 17:19 policy. JSON
-RW-r -- 1 1004 1004 9032 April 17 17:19 policy. v3cloudsample. JSON
Create the directory required by keystone
[[Email protected] etc] # mkdir/etc/keystone
[[Email protected] etc] # mkdir/var/log/keystone
[[Email protected] etc] # mkdir/var/run/keystone
[[Email protected] etc] # cp Keystone. conf. Sample/etc/keystone/Keystone. conf
[[Email protected] etc] # cp keystone-paste.ini/etc/keystone/
[[Email protected] etc] # cp logging. conf. Sample/etc/keystone/logging. conf
[[Email protected] etc] # cp policy. JSON/etc/keystone/
Create a PKI certificate
[[Email protected] etc] # keystone-manage pki_setup -- keystone-User Root -- keystone-group Root
Generating RSA private key, 2048 bit long Modulus
... + +
..............................
E is 65537 (0x10001)
Generating RSA private key, 2048 bit long Modulus
........................................ .......................... ++
........................................ ..................... ++
E is 65537 (0x10001)
Using configuration from/etc/keystone/SSL/certs/OpenSSL. conf
Check that the request matches the signature
Signature OK
The subject's distinguished name is as follows
Countryname: printable: 'us'
Stateorprovincename: ASN.1 12: 'unset'
Localityname: ASN.1 12: 'unset'
Organizationname: ASN.1 12: 'unset'
CommonName: ASN.1 12: 'www .example.com'
Certificate is to be certified until Aug 14 15:01:44 2024 GMT (3650 days)
Write out database with 1 new entries
Data Base updated
625 rows
[[Email protected] linux-node1 etc] # chown-r root: Root/etc/keystone/SSL
[[E-mail protected] etc] # chmod-r 750/etc/keystone/SSL
[[Email protected] etc] # Cd ~
[[Email protected] ~] # Vim/etc/keystone/Keystone. conf
Connection = MYSQL: // keystone: [email protected]/keystone
This article is from the "8055082" blog and will not be reproduced!