In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I am using the ubuntu16.04 system here.
Use docker for installation
We use the mirror provided in https://hub.docker.com/r/redpointgames/phabricator/.
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: https://www.jb51.net/article/148880.htm
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
Where xxxx is the public network ip of your server, you can access the phabricator deployed by docker on your server through http://xxxxx:8891. 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, https://secure.phabricator.com/source/phabricator/browse/master/scripts/install/install_ubuntu.sh
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 running webserver, run git, pull libphutil/,arcanist/,phabricator, run phabricator/bin/storage upgrade, restart webserver
Summary
The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.
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.