Gogs Installation AND (Deployment)
Gogs Installation AND (Deployment)
PUT THE PASSWORD FOR MYSQL AND ANOTHER QUESTION FROM MYSQL PUT Y
BETTER AND ANOTHER THING IS DEPEND ON THE USAGE CHAGE IT TO N
11. Check if MySQL Service Is Running:- sudo systemctl status mysql
12. Log in to MySQL Server
OUT PUT AS
Output
Available applications:
Nginx Full
Nginx HTTP
Nginx HTTPS
OpenSSH
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)
OUTPUT BECOME
Output
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:
enabled)
Active: active (running) since Fri 2020-04-20 16:08:19 UTC; 3 days ago
Docs: man:nginx(8)
Main PID: 2369 (nginx)
Tasks: 2 (limit: 1153)
Memory: 3.5M
CGroup: /system.slice/nginx.service
├─2369 nginx: master process /usr/sbin/nginx -g daemon on;
master_process on;
└─2380 nginx: worker process
NOW WEBSERVER WORKING FINE BT TEST :- http://your_server_ip
FLUSH PRIVILEGES;
EXIT;
NOW THE DATABASE IS WORKING ON LOCAL HOST AS USER NAME AS gogsuser, database name as gogsdb
Edit some code on the file path as cd /etc/mysql/mariadb.conf.d/50-server.cnf in the file ( 50-server .cnf)
put the data as innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_default_row_format = dynamic
then restar mariadb by command - sudo systemctl restart mariadb.service
cd /tmp
wget https://dl.gogs.io/0.11.91/gogs_0.11.91_linux_amd64.tar.gz
sudo tar xvf gogs_0.11.91_linux_amd64.tar.gz -C /home/git
sudo chown -R git: /home/git/gogs
sudo cp /home/git/gogs/scripts/systemd/gogs.service /etc/systemd/system/
sudo systemctl status gogs-in this we can see the googs server is working or not if
working go forward and take configuration on nginix file path as follow below
by using nano editer the file last mentioned add this below shown and save it
server {
listen 80;
server_name gogs.biaodianfu.com;
location / {
proxy_pass http://localhost:3000;
}
You can also add the mail id username and password for administrative privillage
After install try to login with user name and password early set on there these are the
initial insatalling process after we can create organization user admin all things we can
add on it it work as self hosting prorety server with storage repository