Last active
March 23, 2017 18:19
-
-
Save Sirpyerre/9060904f2c1d78f88e938490d5d55d21 to your computer and use it in GitHub Desktop.
Instalar Bitbucket Server en Centos 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bajar de https://bitbucket.org/product/download | |
# chmod +x atlassian-bitbucket-4.14.0-x64.bin | |
#./atlassian-bitbucket-4.14.0-x64.bin | |
[/var/atlassian/application-data/bitbucket] [enter] | |
Dejar puertos default | |
Bitbucket also requires ports 7992 and 7993 are available to run an embedded | |
Elasticsearch instance that provides search functionality to Bitbucket. | |
HTTP Port Number | |
[7990] | |
Control Port Number | |
[8006] | |
Install Bitbucket as a service? | |
Yes [y, Enter], No [n] | |
y | |
Installation Directory: /opt/atlassian/bitbucket/4.14.0 | |
Home Directory: /var/atlassian/application-data/bitbucket | |
HTTP Port: 7990 | |
Control Port: 8006 | |
Install as a service: Yes | |
Abrir firewall | |
#firewall-cmd --zone=public --add-port=7990/tcp --permanent | |
#firewall-cmd --reload | |
Instalar postgresql | |
#yum localinstall http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm | |
#yum install postgresql95-server | |
#export PGDATA=/var/lib/pgsql/9.5/data/ | |
Inicialiazar BD | |
Iniciar postgresql en el boot | |
systemctl start postgresql-9.5.service | |
systemctl enable postgresql-9.5.service | |
Crear la base de datos | |
#su - | |
#su - postgres | |
psql (9.5.6) | |
Digite «help» para obtener ayuda. | |
postgres=# | |
CREATE SCHEMA bitbucket; | |
CREATE USER bitbucketuser PASSWORD 'bitbucketdbpassw0rd2017''; | |
GRANT ALL ON SCHEMA bitbucket TO bitbucketuser; | |
GRANT ALL ON ALL TABLES IN SCHEMA bitbucket TO bitbucketuser; | |
CREATE DATABASE bitbucket WITH ENCODING='UTF8' OWNER=bitbucketuser CONNECTION LIMIT=-1; | |
Crear archivo para inicio del servicio de bitbucket | |
vim /etc/systemd/system/bitbucket.service | |
[Unit] | |
Description=Atlassian Bitbucket Server Service | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=atlbitbucket | |
ExecStart=/opt/atlassian/bitbucket/4.0.0/bin/start-bitbucket.sh | |
ExecStop=/opt/atlassian/bitbucket/4.0.0/bin/stop-bitbucket.sh | |
[Install] | |
WantedBy=multi-user.target | |
Habilitar e iniciar | |
#systemctl enable bitbucket | |
#systemctl start bitbucket | |
Abrir el nevegador y esperar que arranque la instalacion | |
Ejemplo: http://192.168.1.121:7990 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment