Uncategorized

wordpress 폴더권한 문제

Unable to open primary script: …….. 1. wp-permission.sh #!/bin/bash # # This script configures WordPress file permissions based on recommendations # from http://codex.wordpress.org/Hardening_WordPress#File_permissions # # Author: Michael Conigliaro # WP_OWNER=user1 # <– wordpress owner WP_GROUP=user1 # <– wordpress group WP_ROOT=/home/user1/wordpress # <– wordpress root directory WS_GROUP=nginx # <– webserver group 더 보기…

글쓴이 master,
Uncategorized

ROS – Devian Installation ( Tested on Stretch)

http://wiki.ros.org/Debian/Installation/Source #!/usr/bin/env bash DISTRO=vivid ## the basic tools from ROS’s Ubuntu Vivid Distribution ## also work with Debian Stretch ## http://wiki.ros.org/jade/Installation/Ubuntu#Installation.2BAC8-Ubuntu.2BAC8-Sources.Setup_your_sources.list sudo -E apt-key adv –keyserver hkp://ha.pool.sks-keyservers.net:80 –recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 sudo sh -c “echo \”deb http://packages.ros.org/ros/ubuntu $DISTRO main\” > /etc/apt/sources.list.d/ros-latest.list” sudo apt-get update sudo apt-get install cmake python-nose libgtest-dev ## needed 더 보기…

글쓴이 master,
Uncategorized

mysql DB별 백업 하기

mysql DB 별 백업하기 mysql_config_editor 를 이용하여 접속정보를 저장한다. shell> mysql_config_editor set –login-path=root_login –host=localhost –user=root –password Enter password: [비밀번호입력] 백업 스크립트 생성 shell > vi mysql_backup.sh #!/bin/bash backup_dir=”/root/backup/mysql” rm -f $backup_dir/*.sql db_list=`mysql –login-path=root_login -e “show databases” | tail -n+2`; for db_name in $db_list; do if [ “$db_name” != “information_schema” -a 더 보기…

글쓴이 master,