(주)누리웨어

화상연동/Web,APP 구축및서비스/LMS/평생교육/학점은행/기업교육/연수관리/설문구축/

Centos 7 firewall-cmd

1)add port firewall-cmd –permanent –zone=public –add-port=80/tcp firewall-cmd –reload (설정적용) firewall-cmd –list-all (확인) 2)remove port firewall-cmd –permanent –zone=public –remove-port=80/tcp  

Cloud9 volume 확장

xvda 일경우 1)  ec2 의 스토리지로 가서 볼륨확장후 – xvda ec2-user:~/environment $ sudo growpart /dev/xvda 1 – /dev/nvme0n1 일경우 ec2-user:~/environment $ sudo growpart /dev/nvme0n1 1 ec2-user:~/environment $ sudo xfs_growfs -d /

Centos public key connect

1.Client [root@client ~]#ssh-kegen -t rsa ssh-copy-id -i .ssh/id_rsa.pub root@서버 그리고 바로   ssh root@서버 해서 로그인하면 키없이 로그인가능한 상태입니다.

Centos + PHP5.6 수동설치

1.Download cd /app/install wget http://kr1.php.net/distributions/php-5.6.17.tar.gz tar xzvf php-5.6.17.tar.gz 2.Library install yum install -y libxml2-devel libcurl-devel gd-devel libmcrypt-devel 3.Compile & install cd /usr/local/php-5.6.17 ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-pdo-mysql=/usr/local/mysql –disable-debug –enable-sigchild –enable-inline-optimization –enable-sysvsem –enable-sysvshm –enable-bcmath –enable-ftp –enable-sockets –enable-exif –enable-soap –with-zlib-dir=/usr –with-zlib –with-gd –with-jpeg-dir=/usr –with-png-dir=/usr –with-freetype-dir=/usr –with-iconv –enable-mbstring –with-curl –with-openssl –enable-zip make && make install

Centos7 apache install (수동설치)

root권한으로 실행합니다. 1.필수 라이브러리 설치 [root@hae app]# yum install gcc gcc-c++ expat-devel.x86_64 pcre-devel 3.apr, apr-util, pcre,httpd 다운로드 및 컴파일

작동확인 [root@hae bin]# cd /app/web/apache2/bin [root@hae bin]# ./apachectl start [root@hae bin]# netstat -tulpn | grep LISTEN tcp 0 0 0.0.0.0:7990 0.0.0.0:* LISTEN 9188/ssh tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1001/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* […]

Linux mount/umount

mount 확인후 할당

리부팅할경우도 마운트 유지 Auto mount (case restart) [root@test /]# vi /etc/fstab

Linux Centos 8 apache install

1) yum install httpd 2) 확인 [root@hae sbin]# httpd -version Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20 3) 방화벽설정 [root@hae sbin]# firewall-cmd – -state running [root@hae conf]# firewall-cmd  – -permanent – -add-service=http success [root@hae conf]# firewall-cmd  – -permanent – -add-service=https success [root@hae conf]# firewall-cmd  – -reload success [root@hae conf]# systemctl enable httpd […]

Linux(CentOS) open java 8 install

1.java 확인 [root@hae bin]# which java /usr/bin/java 2.없을 경우 yum install [root@hae ~]# yum install java-1.8.0-openjdk 3.확인 [root@hae ~]# which java /usr/bin/java [root@hae ~]# cd /usr/bin [root@hae bin]# ls -al|grep java lrwxrwxrwx. 1 root root 26 Feb 19 19:25 alt-java -> /etc/alternatives/alt-java lrwxrwxrwx. 1 root root 22 Feb 19 19:25 java -> /etc/alternatives/java [root@hae bin]# […]

Centos 7 mysql8 install

1)yum localinstall 명령어로 MySQL rpm 패키지 설치 [root@hae ~]# yum repolist enabled | grep “mysql.*-community.*” [root@hae ~]# sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Loaded plugins: fastestmirror mysql80-community-release-el7-3.noarch.rpm | 25 kB 00:00:00 Examining /var/tmp/yum-root-tl7kMk/mysql80-community-release-el7-3.noarch.rpm: mysql80-community-release-el7-3.noarch Marking /var/tmp/yum-root-tl7kMk/mysql80-community-release-el7-3.noarch.rpm to be installed Resolving Dependencies –> Running transaction check —> Package mysql80-community-release.noarch 0:el7-3 will be installed –> Finished Dependency Resolution Dependencies […]

MS-SQL 축소

ALTER DATABASE emudb SET RECOVERY SIMPLE DBCC SHRINKFILE(emudb_log) ALTER DATABASE emudb SET RECOVERY FULL ALTER DATABASE emudb SET RECOVERY SIMPLE DBCC SHRINKFILE(emudb) ALTER DATABASE emudb SET RECOVERY FULL

Previous Posts

Theme created by thememotive.com. Powered by WordPress.org.