In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use Docker to install phabricator and configure and use" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to use Docker to install phabricator and configure and use" article can help you solve the problem.
I am using the ubuntu16.04 system here.
Use docker for installation
We use the mirror provided in.
A variety of plug-ins have been provided in this image, but we need to provide the address of the mysql database ourselves.
So we can install a mysql database using docker first. Please refer to:
According to the above tutorial, we installed mysql with the account number root and password 123456
Pass through
Docker inspect | grep ipaddress
We can know the ip address of the container mysql. The private ip added to the container we found is 172.17.0.2.
Now we can install phabricator using docker.
Docker pull redpointgames/phabricator # pull the latest version of phabricator
Start
Docker run-- name phabricator-p 443-p 332-22-p 8891-80-v / root/phabricator/backup:/repos-e phabricator_host=xxxxxx:8891-e mysql_host=172.17.0.2-e mysql_user=root-e mysql_pass=123456-e phabricator_repository_path=/repos-e path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin-it redpointgames/phabricator / bin/bash / app/init.sh
Xxxx is the public network ip of your server, which can be used to access the phabricator deployed by docker on your server. But remember to turn on the security team.
After the installation is complete, we can use the public network ip
Add the port number 8891 to access.
At this time, the user we add, who will be the administrator of the system by default, can log in to the background and make other settings. But don't launch this page yet. Because you have to make some settings.
If you don't visit this interface for the first time, we can also add users in the console by command.
Enter the container cd / srv/phabricator/phabricator./bin/accountadmin
If your administrator user has checked out, prompt the following message
This phabricator install is not configured with any enabled authentication providers which can be used to log in. If you have accidentally locked yourself out by disabling all providers, you can use phabricator/bin/auth recover to recover access to an administrative account.
You should run the command.
Enter the container cd / srv/phabricator/phabricator./bin/auth recover luanpeng (the administrator account created in the web page)
Will be prompted to enter through a web page.
Use this link to recover access to the "luanpeng" account from the web interface: http://xxxxxx:8891/login/once/recover/1/xxxxxxxxxx/after logging in, you can use the "auth" application to add or restore authentication providers and allow normal logins to succeed.
Follow the prompts
Select auth in the left column of the home page and go to the following figure
Allow users to log in and register
At this point, phabricator is installed.
If you don't want to use docker installation, you can deploy it on your own. However, the steps are cumbersome, so it is recommended to deploy through docker.
Install using the installation script
Create an installation script. Open the URL and copy the script content from the web page to the newly created sh file
Download the script file from the URL, or create a sh file locally and copy the sh code on the web page. Form a local installation script install_ubuntu.sh
Create the installation directory / home/luanpeng/work/phabricator
Copy the installation script to the installation directory and execute the script
Sh install_ubuntu.sh
Perform the foot installer and follow the on-screen prompts. The script will automatically install git, apache, mysql, php... Wait for a series of tools.
Note: when you install mysql, you will be prompted several times to enter your root password. It is recommended that the password be set to empty for later use.
Download phabricator and its dependent packages
$cd somewhere/ # pick some install directory change to the installation directory somewhere/ $git clone git://github.com/facebook/libphutil.gitsomewhere/ $git clone git://github.com/facebook/arcanist.gitsomewhere/ $git clone git://github.com/facebook/phabricator.git
Web server: configuring apache
Join sverver name
(1) modify httpd.conf. This file should be empty just after installing apache. (version 2.4.x can create a httpd.conf file under the / etc/apache2 path)
Add the following: servername localhost
(2) Save and exit.
two。 Verify apache installation
(1) restart apache service
/ etc/init.d/apache2 restart
(2) verify the page
Open a browser and enter localhost in the address bar. See if the word "it works" appears. If so, it means that apache is working properly. Otherwise, you need to check to see if httpd.conf is configured correctly.
Update phabricator
As phabricator has been in a state of development, you should update it frequently. How to update:
Stop the operation of webserver
Run git to pull libphutil/,arcanist/,phabricator
Run phabricator/bin/storage upgrade
Restart webserver
This is the end of the introduction to "how to use Docker to install phabricator and configure and use it". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.