sudo docker tag hello-world prabhu4029/imagename
Sunday, July 8, 2018
DevOps-Docker
Wednesday, June 27, 2018
Installing Python3 on Centos7
$ sudo su -
[root] $ yum groupinstall -y "development tools"
[root] $ yum install -y \
libffi-devel \
zlib-devel \
bzip2-devel \
openssl-devel \
ncurses-devel \
sqlite-devel \
readline-devel \
tk-devel \
gdbm-devel \
db4-devel \
libpcap-devel \
xz-devel \
expat-devel
[root ] $ cd /usr/src
[root ] $ wget http://python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
[root ] $ tar xf Python-3.6.4.tar.xz
[root ] $ cd Python-3.6.4
[root ] $ ./configure --enable-optimizations
[root ] $ make altinstall
[root ] $ exit
List of commands:
1 bash script.sh 2 ls -l 3 yum update 4 yum groupinstall -y "development tools" 5 yum install -y lsof wget vim-enhanced words which 6 exit 7 yum groupinstall -y "development tools" 8 yum yum install -y libffi-devel 9 yum install -y libffi-devel zlib-devel bzip2-devel openssl-devel ncurses-d evel sqlite-devel tk-devel gdbm-devel libpcap-devel xz-devel expat-devel 10 cd /usr/src/ 11 ls -l 12 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz 13 ls 14 tar xf Python-3.7.0.tgz 15 cd Python-3.7.0 16 ./configure --enable-optimizations 17 make altinstall 18 exit 19 history
Python 3 Scripting for System Administrators
Saturday, June 16, 2018
Devops --installing apache maven on CENTOS7
Devops -- git
Monday, June 12, 2017
Java Practice
class FreshJuice {
enum FreshJuiceSize{ SMALL, MEDIUM, LARGE }
FreshJuiceSize size;
}
public class FreshJuiceTest {
public static void main(String args[]) {
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM ;
System.out.println("Size: " + juice.size);
}
}
/*class FreshJuice {
enum FreshJuiceSize{SMALL, MEDIUM, LARGE }
FreshJuiceSize size;
}
public class FreshJuiceTest{
public static void main(String args[]){
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM;
System.out.println("Size: " + juice.size);
}
}
*/
enum FreshJuiceSize{ SMALL, MEDIUM, LARGE }
FreshJuiceSize size;
}
public class FreshJuiceTest {
public static void main(String args[]) {
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM ;
System.out.println("Size: " + juice.size);
}
}
/*class FreshJuice {
enum FreshJuiceSize{SMALL, MEDIUM, LARGE }
FreshJuiceSize size;
}
public class FreshJuiceTest{
public static void main(String args[]){
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM;
System.out.println("Size: " + juice.size);
}
}
*/
Subscribe to:
Posts (Atom)