개발/ubuntu11 tmp ci_session 삭제 1. 셀 작성 # vi /tmp/del_ci_session.sh #! /bin/sh find /tmp/ -name 'ci_*' -mtime +1 -delete -mtime +1 -delete : 1 일이상 지난 내용 2. 권한 설정 # chmod 755 del_ci_session.sh 3. 크론탭 설정 # crontab -e #/tmp ci_session 삭제 0 0 * * * /tmp/del.sh 2022. 7. 29. nginx openssl apt-get update apt-get install nginx openssl mkdir /etc/nginx/certificate cd /etc/nginx/certificate openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out nginx-certificate.crt -keyout nginx.key Commen Name - 서버 IP 작성 Generating a RSA private key ............++++ .......................................................++++ writing new private key to 'nginx.key' ----- You are about .. 2022. 6. 12. nginx 홈디렉토리 변경 1. root 권한 변경 sudo - s 2. 가상 서버 환경들에 대한 설정 cd /etc/nginx/sites-available/ vi default #root /var/www/html; root /var/www/goods; 3. nginx 재시작 service nginx restart 2022. 1. 1. [ubuntu] composer 설치 sudo apt-get update sudo apt-get install curl cd /home/ubuntu/ sudo curl -s https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer #=>composer 전역으로 사용 완료메세지 Composer (version 2.1.11) successfully installed to: /home/ubuntu/composer.phar Use it: php composer.phar composer update 2021. 11. 5. 이전 1 2 3 다음