Showing posts with label commands. Show all posts
Showing posts with label commands. Show all posts

Tuesday, December 14, 2021

JavaScript basic commands;

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">I made a cheatsheet of JavaScript basics 😆<br>Enjoy!! <a href="https://t.co/70YIFtSzn2">pic.twitter.com/70YIFtSzn2</a></p>&mdash; yuri 유리 🇰🇷 (@codingyuri) <a href="https://twitter.com/codingyuri/status/1470708645717426179?ref_src=twsrc%5Etfw">December 14, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 




Wednesday, August 18, 2021

Restart JIRA with MySQL DB; UNIX commands

ps -ef | grep jira

kill any running processes.

 

As app user:

 

Start database with /usr/local/mysql/bin and run ./mysqld

 

to stop database;

 

cd /usr/local/mysql/supporting-files/  and ./mysql.server stop

 

 

 

 

    export JAVA_HOME=/apname/src/jdk1.8.0_211/

    export PATH=$JAVA_HOME/bin:$PATH

 

 

cd /usr/local/mysql/

              

[app@ITSP14 bin]$ ./mysql -u root -p

 

password:<password>

 Below needs to be set for MySQL8

mysql>    SELECT @@global.time_zone;

mysql>   SET GLOBAL time_zone = '+00:00';

              

               After setting it up, Don't restart MySQL, Just restart JIRA

              

               Restart JIRA as jira user.

              

               ./config.sh is used to configure jira

 

 

As root run ->chown -R jira:jira /appname/apps/atlassian/

 

Reindex after logging to JIRA under Systems and Advanced options-->


Wednesday, September 9, 2020

Group access to linux user;

Create linux user 

sudo useradd VJ_test_user


Set Password for the user created

sudo passwd VJ_test_user

> VJ@123


Create a group 

sudo groupadd VJ_test_group


Add users to a group

sudo usermod -a -G VJ_test_group VJ_test_user

sudo usermod -a -G VJ_test_group VJapp


Give group access to the directory

chgrp -R VJ_test_group /home/VJ_test_user


Grant group access 

chmod g+rwX /home/VJ_test_user -R


Change owner of directory:


Change owner and group of directory- 

> chown -r username:groupname <Directory_Location>


Thursday, June 2, 2016