[Root@localhost download]#./bitnami-gitlab-7.13.0-0-linux-x64-installer.run
----------------------------------------------------------------------------
Welcome to the Bitnami gitlab Stack Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; Clear the components you don't want
To install. Click Next When you are are ready to continue.
Password:
Please confirm your password:
----------------------------------------------------------------------------
Web Server Port
Please enter the port this bundled Apache Server'll listen to by default.
Apache Web Server Port [80]:
----------------------------------------------------------------------------
Hostname that'll be used to create internal URLs. If This value is incorrect,
You are unable to access your Gitlab installation from the other computers. It is
advisable to use a Domain instead of the IP address for compatibility with
Different browsers.
Domain [127.0.0.1]:
Do your want to configure mail support? [y/n]: N
----------------------------------------------------------------------------
The Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.
Do your want to continue? [y/n]: Y
----------------------------------------------------------------------------
Please wait while the Setup installs Bitnami Gitlab Stack on your computer.
(4)
The basic database operation is to use the normal SQL language.
# Create a new table?
CREATE TABLE user_tbl (name VARCHAR, signup_date date);
# Insert data?
INSERT into USER_TBL (name, signup_date) VALUES (' John ', ' 2013-12-22 ');
# Select records?
SELECT * from USER_TBL;
# Update data?
UPDATE user_tbl Set name = ' Dick ' WHERE name = ' John ';
# delete records?
DELETE from user_tbl WHERE name = ' Dick ';
# add fields?
ALTER TABLE user_tbl ADD email VARCHAR (40);
# Update structure?
Alter TABLE USER_TBL ALTER COLUMN signup_date SET not NULL;
# rename field?
ALTER TABLE user_tbl RENAME COLUMN signup_date to signup;
# delete fields?
ALTER TABLE user_tbl DROP COLUMN email;
# Table name change?
ALTER TABLE user_tbl RENAME to Backup_tbl;
# Delete table?
DROP TABLE IF EXISTS backup_tbl;
(2) Daily backup
1. Set up backup directory:
Vim/home/gitlab/apps/gitlab/htdocs/config/gitlab.yml
Add a backup directory inside the backup module
Backup
Path: "/tmp/backups" # relative paths are relative to Rails.root (default:tmp/backups/)
(2) Perform backup operations
Toggle User
/home/gitlab/use_gitlab
cd/home/gitlab/apps/gitlab/htdocs/
Bundle EXEC Bin/rake gitlab:backup:create rails_env=production
The generated backup file is
/tmp/backup/1466567296_gitlab_backup.tar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.